Querystring

November 2, 2023 ยท View on GitHub

Show the querystring selection app.

Configuration

OptionTypeDefaultDescription
criteriaobject{}options to pass into criteria
indexOptionsUrlstringnullURL to grab index option data from. Must contain "sortable_indexes" and "indexes" data in JSON object.
patternDateOptionsobject{}Options for the Date/Time select widget.
patternAjaxSelectOptionsobject{}Options for the AJAX select widget.
patternRelateditemsOptionsobject{}Options for the related items widget.
previewURLstring'portal_factory/@@querybuilder_html_results'URL used to pass in a plone.app.querystring-formatted HTTP querystring and get an HTML list of results
previewCountURLstring'portal_factory/@@querybuildernumberofresults'URL used to pass in a plone.app.querystring-formatted HTTP querystring and get an HTML string of the total number of records found with the query
classWrapperNamestring'querystring-wrapper'CSS class to apply to the wrapper element
classSortLabelNamestring'querystring-sort-label'CSS class to apply to the sort on label
classSortReverseNamestring'querystring-sortreverse'CSS class to apply to the sort order label and checkbox container
classSortReverseLabelNamestring'querystring-sortreverse-label'CSS class to apply to the sort order label
classPreviewCountWrapperNamestring'querystring-previewcount-wrapper'TODO
classPreviewResultsWrapperNamestring'querystring-previewresults-wrapper'CSS class to apply to the results wrapper
classPreviewWrapperNamestring'querystring-preview-wrapper'CSS class to apply to the preview wrapper
classPreviewNamestring'querystring-preview'CSS class to apply to the preview pane
classPreviewTitleNamestring'querystring-preview-title'CSS class to apply to the preview title
classPreviewDescriptionNamestring'querystring-preview-description'CSS class to apply to the preview description
classSortWrapperNamestring'querystring-sort-wrapper'CSS class to apply to the sort order and sort on wrapper
showPreviewsbooleantrueShould previews be shown?

Examples

Default

<input
    class="pat-querystring"
    data-pat-querystring="indexOptionsUrl: /dist/test-querystringcriteria.json"
/>

Without previews

<input
    class="pat-querystring"
    data-pat-querystring="indexOptionsUrl: /dist/test-querystringcriteria.json;
            showPreviews: false;"
/>