LiveTable filter by date
Last modified by Alex Cotiugă on 2024/07/08 00:07
Add date picker to LiveTable in order to filter by Date |
Type | XAR |
Category | |
Developed by | |
Active Installs | 6 |
Rating | |
License | GNU Lesser General Public License 2.1 |
Table of contents
Description
This extension contain a xar that allow you to filter by date in the livetable, once you click on the concerned field (specified by "type": "datetime"), a datepicker will be displayed in order to filter, you can see this in the screen above :
Example
{{include document="XWiki.LiveTableCustom" /}}
{{velocity}}
#set ($columnsProperties = {
'doc.name': {"type":"text","size":10,"link":"view"},
'doc.space': {"type":"text","size":20,"link":"view"},
'doc.author': {"type":"text","size":10},
'doc.date': {"type":"datetime","size":10}
})
#set ($options = {
'translationPrefix' : 'platform.index.',
'selectedColumn': 'doc.date',
'defaultOrder': 'desc'
})
#set ($columns = ['doc.name', 'doc.space', 'doc.author', 'doc.date'])
#livetableCustom('livetabledate' $columns $columnsProperties $options)
{{/velocity}}