widgets.pbDataTable.pbDataTable.json Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ui-designer-artifact-builder-generator-angularjs Show documentation
Show all versions of ui-designer-artifact-builder-generator-angularjs Show documentation
This module is a generator on AngularJS for Artifact Builder
{
"id" : "pbDataTable",
"name" : "Data table",
"type" : "widget",
"custom" : false,
"modelVersion" : "2.6",
"description" : "Table with pagination and filtering capabilities",
"template" : "@pbDataTable.tpl.html",
"controller" : "@pbDataTable.ctrl.js",
"properties" : [
{
"label" : "Caption",
"name" : "caption",
"help" : "Describing the content of a data table. To be accessible the description must be relevant (clear and concise).",
"type" : "text",
"bond" : "interpolation"
},
{
"label" : "Interpret HTML",
"name" : "allowHTML",
"help" : "If you choose 'no', HTML code will be escaped instead of being interpreted in row's cells. If you choose ‘Yes’, this could potentially lead to HTML injections attacks. Please take into account these risks.",
"type" : "boolean",
"defaultValue" : false,
"bond" : "constant"
},
{
"label" : "Headers",
"name" : "headers",
"caption" : "Comma-separated list",
"help" : "If you specify an expression, the result must be an array of strings",
"type" : "collection",
"defaultValue" : [
"Id",
"Name",
"Description",
"Date"
],
"bond" : "expression"
},
{
"label" : "Data source",
"name" : "type",
"help" : "Variable for frontend paging and ordering or Bonita REST API URL for backend paging and ordering",
"type" : "choice",
"defaultValue" : "Bonita API",
"choiceValues" : [
"Variable",
"Bonita API"
],
"bond" : "constant"
},
{
"label" : "URL",
"name" : "apiUrl",
"caption" : "A Bonita REST API URL",
"showFor" : "properties.type.value === 'Bonita API'",
"type" : "text",
"defaultValue" : "../API/",
"bond" : "expression"
},
{
"label" : "API request parameters",
"name" : "params",
"help" : "Additional request parameters added to the query string as json or javascript object, by using the related variable type",
"showFor" : "properties.type.value === 'Bonita API'",
"type" : "text",
"bond" : "expression"
},
{
"label" : "Content",
"name" : "content",
"help" : "Array used to populate the table. Can be a list of objects. Use 'Column keys' to refine content",
"showFor" : "properties.type.value === 'Variable'",
"type" : "text",
"bond" : "expression"
},
{
"label" : "Columns key",
"name" : "columnsKey",
"caption" : "Use Filters to format the data (e.g. columnKey|uiDate)",
"help" : "When 'Content' is a list of objects, specifies the attributes to display in the table columns. These keys must not be a number, or start with a number",
"type" : "collection",
"bond" : "expression"
},
{
"label" : "Sortable columns",
"name" : "sortColumns",
"caption" : "List from column keys",
"help" : "BDM APIs are not yet sortable. For other APIs, test in the preview or refer to the BonitaBPM documentation 'REST API' pages",
"showFor" : "properties.type.value === 'Bonita API'",
"type" : "collection",
"bond" : "expression"
},
{
"label" : "Selected Row",
"name" : "selectedRow",
"type" : "text",
"bond" : "variable"
},
{
"label" : "Page size",
"name" : "pageSize",
"type" : "integer",
"defaultValue" : 10,
"bond" : "expression"
},
{
"label" : "Filter",
"name" : "filter",
"help" : "Bind to a Variable to filter the table 'Content'",
"type" : "text",
"bond" : "expression"
},
{
"label" : "Zebra-striping",
"name" : "striped",
"help" : "Alternating gray and transparent backgrounds",
"type" : "boolean",
"defaultValue" : true,
"bond" : "constant"
},
{
"label" : "Condensed",
"name" : "condensed",
"help" : "Condensed table with half padding",
"type" : "boolean",
"defaultValue" : false,
"bond" : "constant"
},
{
"label" : "Bordered",
"name" : "bordered",
"help" : "Add borders all around the table and between all the columns.",
"type" : "boolean",
"defaultValue" : false,
"bond" : "constant"
}
],
"assets" : [
{
"id" : "cad5d085-a023-4add-868d-ab23739853e9",
"name" : "bonita-lib-tpl-0.5.21.js",
"type" : "js",
"order" : 0,
"external" : false
},
{
"id" : "b9acdba4-02e3-4af0-86ae-4f011565f08f",
"name" : "ui-bootstrap-tpls-0.13.0.min.js",
"type" : "js",
"order" : 0,
"external" : false
},
{
"id" : "d33eeaab-9b42-4df7-8f74-8edd0fcfc590",
"name" : "bonita-lib-0.5.21.css",
"type" : "css",
"order" : 0,
"external" : false
}
],
"requiredModules" : [
"org.bonitasoft.templates",
"ui.bootstrap.pagination",
"template/pagination/pagination.html",
"org.bonitasoft.bonitable",
"org.bonitasoft.bonitable.sortable"
],
"webResources" : [ ],
"icon" : "",
"order" : 18,
"hasHelp" : true
}