Implements a search widget for the Search Filter component.
{
"search": {
"categories": [
{
"id": "createdDatetimeRange",
"name": "Created Datetime (range)",
"enabled": true,
"component": {
"selector": "datetime-range",
"settings": {
"field": "cm:created"
}
}
}
]
}
}
Name | Type | Description |
---|---|---|
field | string | Field to apply the query to. Required value |
datetimeFormat | string | Datetime format. Datetime formats used by the datetime picker are Moment.js instances, so you can use any datetime format supported by Moment. Default is 'DD/MM/YYYY HH:mm'. |
maxDatetime | string | A fixed datetime that will set the maximum searchable datetime. Default is no maximum. |
hideDefaultAction | boolean | Show/hide the widget actions. By default is false. |
This component lets the user select a range between two dates and times based on the particular field
.
See the Search filter component for full details of how to use widgets
in a search query.
You can set the datetime range picker to work with any datetime format your app requires. You can use
any datetime format supported by Moment.js
in the datetimeFormat
and in the maxDatetime
setting:
{
"search": {
"categories": [
{
"id": "createdDateTimeRange",
"name": "Created Datetime (range)",
"enabled": true,
"component": {
"selector": "datetime-range",
"settings": {
"field": "cm:created",
"datetimeFormat": "DD-MMM-YY HH:mm:ss",
"maxDatetime": "10-Mar-20 20:00"
}
}
}
]
}
}
© 2023 Alfresco Software, Inc. All Rights Reserved.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.