Comments (5)
Eya,
The example at https://omines.github.io/datatables-bundle/#common-options shows how to access the current row while explicit formatting through a callback function.
Depending on the use case it may be easier to just use a TwigColumn instead.
from datatables-bundle.
https://omines.github.io/datatables-bundle/#twigcolumn
The template is rendered using the main application context by injecting the main Twig service. Additionally the
value
androw
parameters are being filled by the cell value and the row level context respectively.
So you can just use {{ row.id }}
or whatever it is in your case.
from datatables-bundle.
It's getting better now!
from datatables-bundle.
Hi, how did you do to get the {{id}} on the template file ?
from datatables-bundle.
Thanks @curry684
from datatables-bundle.
Related Issues (20)
- Is it possible to create a omines-datatable using the render(controller()) function in twig HOT 1
- How to display a new datatable with Ajax ? HOT 1
- Exporting a large dataset HOT 2
- Add Names to DataTable ColumnDefs / Columns [Column Filtering] HOT 6
- Exporter should set MIME type HOT 4
- Working with PHP Enums HOT 10
- Example with Api Platform HOT 1
- Disable the softdeleteable filter for a specific datatable HOT 2
- jQuery not found when used with AssetMapper HOT 9
- ORMAdapter problem with EntityManager overriding HOT 2
- Undefined method 'createDataTableFromType'.intelephense(P1013) HOT 2
- Multi Values Calculation HOT 4
- problem with state loading HOT 1
- With doctrine/orm 3.1: Error: Expected Doctrine\ORM\Query\TokenType::T_FROM, got '.' HOT 7
- Implicitly declared variable causing Uncaught ReferenceError
- Error : operator does not exist datatable's search HOT 1
- ArrayAdapter `searchable` and `globalSearchable` don't work
- DateTimeColumn vs sorting HOT 1
- Any concerns with Datatables 2? HOT 6
- So, what with column filters ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datatables-bundle.