Skip to content
Snippets Groups Projects
Select Git revision
  • 8c662ffefd32dce4fe0a006a233b821b849f4f3d
  • BaseButton default
  • main
  • linux2
  • linux
  • newboxes
  • offlineupdates
  • qol
  • cryptotest2
  • css-cards
  • crypto-test
  • draganddrop
  • height3
  • height
  • zindex
  • connection2
  • v-forupdate
  • connections
  • v-for
  • organise-forlarger
  • kebabcase
  • lowercase
22 results

OtherListlayer.vue

Blame
  • OtherListlayer.vue 756 B
    <template>
      <div class="otherlist">
        <ul v-for="value in otherNodes" v-bind:key="value.node_id">
          <li
            class="dataeach"
            v-if="nodeid == value.node_id"
            :inner-html.prop="value.node_text | marked"
          >
            {{ nodeid }}
          </li>
        </ul>
      </div>
    </template>
    
    <script>
    import { mapState } from 'vuex'
    import marked from 'marked'
    
    export default {
      name: 'OtherListlayer',
      props: {
        nodeid: String,
        nodetext: String,
      },
    
      computed: mapState({
        otherNodes: (state) => state.otherNodes,
      }),
    
      filters: {
        // need to write a reverse data filter I suspect here so new data is at the top of list
        marked: marked,
      },
    }
    </script>
    
    <style lang="css" scoped>
    li {
      margin-bottom: -15px;
    }
    </style>