Git Product home page Git Product logo

Comments (15)

aocneanu avatar aocneanu commented on August 22, 2024

fa is a vue component.

You can't render vue components from javascript strings. (at least not without a vue render function)

I will enhance the vuedatatable to be able to render fa5 icons when a custom meta tag is provided in the template, in the near future.

What you can do until then:

  • you can include fa5 js globally and use <i class="fas fa-icon"></i>. fa5 js will auto replace the icon with the svg.
  • you can include fa4 and use <i class="fa fa-icon"></i>.

from enso.

mauthi avatar mauthi commented on August 22, 2024

ok, I think importing it globally is too much overload for one icon

but, if I would like to do that where is the best place to import it globally?

from enso.

aocneanu avatar aocneanu commented on August 22, 2024

in resources/assets/js/enso.js at line 15 we import ./app. (app.js). This file is not a part of the core, so will always be local to you project.

This is where you should add what you need extra.

from enso.

mauthi avatar mauthi commented on August 22, 2024

thx

from enso.

aocneanu avatar aocneanu commented on August 22, 2024

@mauthi you can check laravel-enso/tables@dfbd4cc

and if you like it don't forget to star the vdt package :P

from enso.

mauthi avatar mauthi commented on August 22, 2024

from enso.

aocneanu avatar aocneanu commented on August 22, 2024

I suppose that I could add another attribute in meta, something like pressable that would emit an event pressed together with the column name and the whole row. And maybe underline this with dotted line, and set the pointer cursor on it...

from enso.

mauthi avatar mauthi commented on August 22, 2024

from enso.

aocneanu avatar aocneanu commented on August 22, 2024

linkable and icon would work together :)

Icons in custom render .. not too soon.

from enso.

mauthi avatar mauthi commented on August 22, 2024

from enso.

aocneanu avatar aocneanu commented on August 22, 2024

There will always be some idea not covered (or not coverable in an elegant manner) ;)

from enso.

aocneanu avatar aocneanu commented on August 22, 2024

the new meta attribute is clickable, and the event is clicked. It passes both column & row.

from enso.

mauthi avatar mauthi commented on August 22, 2024

from enso.

aocneanu avatar aocneanu commented on August 22, 2024

I suppose you are refering at a falsy row[column.name]. If so yes, go ahead.

P.S. This is enso's repo, not vdt ;)

from enso.

mauthi avatar mauthi commented on August 22, 2024

sorry, is it possible to move the issue to vdt?

from enso.

Related Issues (20)

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.