Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!--
  Forked from:
  https://quasar.dev/vue-components/table#Example--Grid-style
-->
<div id="q-app">
  <div class="q-pa-md">
      <q-table
        title="Resources"
        :data="data"
        :columns="columns"
        :pagination.sync="pagination"
        :filter="filter"
        hide-header
        dense
      >
        <template v-slot:top-right>
          <q-input borderless dense debounce="300" v-model="filter" placeholder="Search">
            <template v-slot:append>
              <q-icon name="search" ></q-icon>
            </template>
          </q-input>
        </template>
      <template v-slot:body-cell-short_description="props">
        <q-td v-if="props.row.url" key="desc" :props="props">
          <a :href="props.row.url" target="_blank">{{ props.row.short_description }}</a>
        </q-td>
        <q-td v-else>{{ props.row.short_description }}</q-td>
      </template>   
      </q-table>
    </div>
</div>
              
            
!

CSS

              
                
              
            
!

JS

              
                new Vue({
  el: '#q-app',
  data () {
    return {
      filter: '',
      columns: [
        {
          label: 'Short description',
          align: 'left',
          // field: row => this.getUrl(row),
          field: 'short_description',
          sortable: true,
          name: 'short_description'
        },
        { label: 'Category', align: "center", name: 'category_display', field: 'category', sortable: true },
        { label: 'Target age', name: 'age_display', field: 'age_display', sortable: true },
        { label: 'Subject', name: 'subject', field: 'subject', sortable: true }
      ],
      data: [
        {
    "id":2,
    "url":"https://trepalchi.it",
    "short_description":"trepalchi",
    "description":"",
    "notes":"",
    "subject":"music",
    "age":null,
    "tags":[
        "teatro",
        " spettacoli"
    ],
    "category":"website",
    "category_display":"Sito Web",
    "age_display":null,
    "subject_display":"Musica",
    "date_create":"2019-04-24T10:19:08.007912",
    "creator_name":"sandro",
    "__index":0
},
{
    "id":26,
    "url":"http://tre.it",
    "short_description":"AAAA -Vediamo se si chiude",
    "description":"<p>Questo dovrebbe chiudersi in automatico</p>",
    "notes":"",
    "subject":null,
    "age":null,
    "tags":[
        ""
    ],
    "category":"website",
    "category_display":"Sito Web",
    "age_display":null,
    "subject_display":null,
    "date_create":"2019-04-27T12:19:53.111627",
    "creator_name":"sandro",
    "__index":1
},
{
    "id":1,
    "url":"http://127.0.0.1:8000/admin/content/resource/add/",
    "short_description":"Prova",
    "description":"",
    "notes":"",
    "subject":null,
    "age":null,
    "tags":[
        "prova",
        "fisa",
        "piano",
        "bella"
    ],
    "category":"app",
    "category_display":"App",
    "age_display":null,
    "subject_display":null,
    "date_create":"2019-04-24T10:18:06.230328",
    "creator_name":"sandro",
    "__index":2
},
{
    "id":5,
    "url":"https://digitalprof.wpengine.com/courses/english-fluency/",
    "short_description":"Corso inglese per facile momorizzazione",
    "description":"",
    "notes":null,
    "subject":"lang",
    "age":"",
    "tags":[
        "provato",
        "pagamento"
    ],
    "category":"other",
    "category_display":"Other",
    "age_display":"",
    "subject_display":"Lingua straniera",
    "date_create":"2019-04-24T11:40:45.672061",
    "creator_name":"sandro",
    "__index":3
},
{
    "id":6,
    "url":"https://vuejsdevelopers.com/2018/08/27/vue-js-form-handling-vuelidate/",
    "short_description":"Questa prova dovrebbe funzionare",
    "description":"",
    "notes":null,
    "subject":null,
    "age":"all",
    "tags":[
        "vuejs"
    ],
    "category":"blog",
    "category_display":"Blog",
    "age_display":"Ogni età",
    "subject_display":null,
    "date_create":"2019-04-25T11:47:20.660060",
    "creator_name":"sandro",
    "__index":4
},
{
    "id":12,
    "url":"http://digitalprof.wpengine.com/topic/the-verb-to-be-daily-exercise/",
    "short_description":"Prova con note",
    "description":"<p>È un corso di inglese per italiani con molta attenzione alla memorizzazione facile. molto interessante</p>",
    "notes":"<p>So I'm working on an app using VueJS &amp; Vuetify. I want to have a dialog that appears as a \"normal\" dialog on desktops, but as a fullscreen dialog on mobile devices using the \"fullscreen\" attribute.</p><p>The thing is, I can't think of any way to do that binding based on device size at the moment. Can someone point me in the right direction? Thanks.</p>",
    "subject":"lang",
    "age":"all",
    "tags":[
        "inglese"
    ],
    "category":"course",
    "category_display":"Corso",
    "age_display":"Ogni età",
    "subject_display":"Lingua straniera",
    "date_create":"2019-04-25T19:22:26.152925",
    "creator_name":"sandro",
    "__index":5
},
{
    "id":13,
    "url":"https://docs.bugsnag.com/platforms/javascript/vue/",
    "short_description":"Altra prova",
    "description":"<p>Junk</p>",
    "notes":"<p>Junk</p>",
    "subject":null,
    "age":null,
    "tags":[
        "junk"
    ],
    "category":"website",
    "category_display":"Sito Web",
    "age_display":null,
    "subject_display":null,
    "date_create":"2019-04-25T19:26:43.073483",
    "creator_name":"sandro",
    "__index":6
},
{
    "id":14,
    "url":"http://aiic.e-den.it/cvbuilder",
    "short_description":"Di notte fonda",
    "description":"<p>Questo è un altro sito</p>",
    "notes":"<p>Come puoi capire</p>",
    "subject":null,
    "age":null,
    "tags":[
        "notte"
    ],
    "category":"app",
    "category_display":"App",
    "age_display":null,
    "subject_display":null,
    "date_create":"2019-04-27T02:27:42.525235",
    "creator_name":"sandro",
    "__index":7
},
{
    "id":15,
    "url":"http://quora.com",
    "short_description":"Aggiorna la lista",
    "description":"<p>oky doc</p>",
    "notes":"<p>queste sono note (non musicali)</p>",
    "subject":null,
    "age":null,
    "tags":[
        ""
    ],
    "category":"website",
    "category_display":"Sito Web",
    "age_display":null,
    "subject_display":null,
    "date_create":"2019-04-27T02:44:53.630737",
    "creator_name":"sandro",
    "__index":8
},
{
    "id":16,
    "url":"http://quora.com",
    "short_description":"Sono stanco",
    "description":"<p>Notte fonda, stanco satnco</p>",
    "notes":"",
    "subject":null,
    "age":null,
    "tags":[
        ""
    ],
    "category":"app",
    "category_display":"App",
    "age_display":null,
    "subject_display":null,
    "date_create":"2019-04-27T02:46:00.574508",
    "creator_name":"sandro",
    "__index":9
},
{
    "id":18,
    "url":"http://gmail.com",
    "short_description":"Ma stiamo scherzando?",
    "description":"<p>Giusto così</p>",
    "notes":"",
    "subject":null,
    "age":null,
    "tags":[
        ""
    ],
    "category":"website",
    "category_display":"Sito Web",
    "age_display":null,
    "subject_display":null,
    "date_create":"2019-04-27T09:16:37.916099",
    "creator_name":"sandro",
    "__index":10
},
{
    "id":20,
    "url":"https://gmail.com",
    "short_description":"Active Res",
    "description":"",
    "notes":"",
    "subject":null,
    "age":null,
    "tags":[
        ""
    ],
    "category":"blog",
    "category_display":"Blog",
    "age_display":null,
    "subject_display":null,
    "date_create":"2019-04-27T09:29:53.810407",
    "creator_name":"sandro",
    "__index":11
},
{
    "id":21,
    "url":"https://gmail.com",
    "short_description":"One more",
    "description":"",
    "notes":"",
    "subject":null,
    "age":null,
    "tags":[
        ""
    ],
    "category":"website",
    "category_display":"Sito Web",
    "age_display":null,
    "subject_display":null,
    "date_create":"2019-04-27T09:30:45.566512",
    "creator_name":"sandro",
    "__index":12
},
{
    "id":22,
    "url":"https://poste.trepalchi.it",
    "short_description":"Poste",
    "description":"",
    "notes":"",
    "subject":null,
    "age":null,
    "tags":[
        ""
    ],
    "category":"website",
    "category_display":"Sito Web",
    "age_display":null,
    "subject_display":null,
    "date_create":"2019-04-27T09:32:01.348122",
    "creator_name":"sandro",
    "__index":13
},
{
    "id":23,
    "url":"http://gmail.com",
    "short_description":"uno due tre",
    "description":"<p>ok</p>",
    "notes":"",
    "subject":null,
    "age":null,
    "tags":[
        ""
    ],
    "category":"website",
    "category_display":"Sito Web",
    "age_display":null,
    "subject_display":null,
    "date_create":"2019-04-27T11:13:22.481570",
    "creator_name":"sandro",
    "__index":14
},
{
    "id":24,
    "url":"https://gmail.com",
    "short_description":"Ancora una",
    "description":"",
    "notes":"",
    "subject":null,
    "age":null,
    "tags":[
        ""
    ],
    "category":"blog",
    "category_display":"Blog",
    "age_display":null,
    "subject_display":null,
    "date_create":"2019-04-27T11:18:31.279328",
    "creator_name":"sandro",
    "__index":15
},
{
    "id":25,
    "url":"http://trepalchi.it",
    "short_description":"Ora con spread",
    "description":"",
    "notes":"",
    "subject":null,
    "age":null,
    "tags":[
        ""
    ],
    "category":"blog",
    "category_display":"Blog",
    "age_display":null,
    "subject_display":null,
    "date_create":"2019-04-27T11:24:42.381691",
    "creator_name":"sandro",
    "__index":16
},
{
    "id":17,
    "url":"https://admin.trepalchi.it",
    "short_description":"Qui comincia l'avventura",
    "description":"<p>Ci siamo, è sabato e c'è il sole!</p>",
    "notes":"",
    "subject":null,
    "age":null,
    "tags":[
        ""
    ],
    "category":"blog",
    "category_display":"Blog",
    "age_display":null,
    "subject_display":null,
    "date_create":"2019-04-27T09:11:13.324620",
    "creator_name":"sandro",
    "__index":17
},
{
    "id":19,
    "url":"https://gmail.com",
    "short_description":"Valentina che fa?",
    "description":"<p>Valentina</p>",
    "notes":"",
    "subject":null,
    "age":null,
    "tags":[
        ""
    ],
    "category":"blog",
    "category_display":"Blog",
    "age_display":null,
    "subject_display":null,
    "date_create":"2019-04-27T09:28:13.101213",
    "creator_name":"sandro",
    "__index":18
},
{
    "id":11,
    "url":"https://trepertre.it",
    "short_description":"vediamo come si comporta ora",
    "description":"<p>Questo sito non esiste!</p>",
    "notes":null,
    "subject":null,
    "age":null,
    "tags":[
        "fisa"
    ],
    "category":"blog",
    "category_display":"Blog",
    "age_display":null,
    "subject_display":null,
    "date_create":"2019-04-25T12:34:55.881427",
    "creator_name":"sandro",
    "__index":19
}
],
      pagination: {
        sortBy: 'category',
        descending: true,
        rowsPerPage: 0
      }
    }
  },
  methods: {
    getUrl (row) {
      if (row.url) {
        return `<a href="${row.url}" target="_blank">${row.short_description}</a>`
      }
    }
  }
})
              
            
!
999px

Console