Git Product home page Git Product logo

formbuilder's People

Contributors

abigailfernandes avatar

Watchers

 avatar  avatar

formbuilder's Issues

Fix

<template>
  <div class="hello">
    <v-app id="inspire">
      <v-card color="grey lighten-4" flat>
        <v-toolbar dark color="indigo darken-4" prominent flat extended>
          <v-toolbar-side-icon></v-toolbar-side-icon>
        </v-toolbar>
        <v-layout row>
          <v-flex xs8 offset-xs2>
            <v-card class="card--flex-toolbar">
              <v-toolbar card color="white" prominent>
                <v-toolbar-title class="body-2 grey--text">{{ adapterName }}</v-toolbar-title>
                <v-spacer></v-spacer>
                <v-btn icon>
                  <v-icon>apps</v-icon>
                </v-btn>
                <v-btn icon>
                  <v-icon>more_vert</v-icon>
                </v-btn>
              </v-toolbar>
              <v-divider></v-divider>
              <v-card-title primary-title>
                <v-text-field label="Adapter Name" v-model="adapterName" single-line></v-text-field>
              </v-card-title>
            </v-card>
          </v-flex>
        </v-layout>
        <v-layout v-for="i in formElementsCounter" :key="i" row @click="selected = i">
          <v-flex xs8 offset-xs2>
            <form-editor-item :selected="selected === i"></form-editor-item>
          </v-flex>
        </v-layout>
      </v-card>
    </v-app>
  </div>
</template>

<script>
import FormEditorItem from './FormEditorItem';

export default {
  name: 'AppHeader',
  components: {
    FormEditorItem,
  },
  data() {
    return {
      adapterName: 'Untitled Adapter',
      addBorder: false,
      formElementsCounter: 1,
      selectedFormEditorItem: [false, false],
      selected: 0,
    };
  },
  methods: {
    selectFormEditorItem(index) {
      this.selectedFormEditorItem[index - 1] = true;
      console.log(this.selectedFormEditorItem);
    },
  },
};
</script>

<style scoped>
.card--flex-toolbar {
  margin-top: -64px;
}
</style>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.