SilkBuilder
  • SilkBuilder
  • Development Environment
    • Development Environment
    • System Elements
    • Project, Data Model and ORM
    • Development Formats
  • Silk Builder Training
    • Sample Database
    • Plain Application
    • Easy Application
    • Simple Application
    • Complex Application
    • Report Application
    • System Environment
  • Docs
    • The ORM Structure
    • SilkBuilder
    • Silk Service
    • Java Database Class
    • Report
  • Silk Tags
    • App
    • AppHeader
    • Button
    • ButtonItem
    • Chart
    • Column
    • Content
    • DataProvider
    • DataService
    • Form
    • Group
    • Header
    • HelpBox
    • If
    • Input
    • JQcode
    • JScode
    • LogicAction
    • LogicDimension
    • LogicGrid
    • Modal
    • ModalBody
    • ModalFooter
    • Module
    • Page
    • Pagination
    • Screen
    • ScreenFooter
    • ScreenHeader
    • Tab
    • TabItem
    • Table
    • TableBody
    • TableHeader
    • TabsNav
    • Tile
  • JavaScript Objects
    • Button
    • ChartJS
    • Column
    • DataProvider
    • EventManager
    • Form
    • Input
    • Modal
    • Pagination
    • SilkPage
    • Table
    • TabsNav
    • Tile
    • Utility Functions
  • Coding Techniques
    • Data Trees
    • Pagination
    • Mark Deleted
    • Record Sync
    • Filtering Code
    • Content Template
    • Sort Data Columns
    • Form Input File
    • Button with Confirmation
    • Toggle List
    • Table Inputs
Powered by GitBook
On this page
  • Tag Definition
  • Location
  • Properties
  • id*
  • title
  • align
  • valign
  • width
  • wrap
  • renderer
  • targetPage
  • cssClass
  • draggable
  • more
  • ordering
  • icon
  • inputType
  • inputMask
  • valueColumn
  • labelColumn
  • visibleColumn
  • sortColumn
  • idColumn
  • renderIf
  • cleanIf
  • distinct
  1. Silk Tags

Column

This component is a child of silk:Table. It is used to configure the columns displayed by the silk:Table. The silk:Column content is formatted based on the template contained in the component. The template can support any HTML tag and uses braces or curly brackets "{}" to enclose the name of data fields. The data fields will be replaced by values from the silk:DataProvider at a displayed time. The template can have as many data fields as necessary.

Tag Definition

Used standalone:

<silk:Column
  id=""
  title=""
  align="left"
  valign="middle"
  width=""
  wrap="false"
  renderer=""
  targetPage=""
  cssClass=""
  draggable="false"
  more="false"
  ordering="false"
  icon=""
  inputType=""
  inputMask=""
  valueColumn=""
  labelColumn=""
  visibleColumn=""
  sortColumn=""
  idColumn=""
  renderIf=""
  cleanIf=""
  distinct=""
/>

Used as a container:

<silk:Column
  id=""
  title=""
  align="left"
  valign="middle"
  width=""
  wrap="false"
  renderer=""
  targetPage=""
  cssClass=""
  draggable="false"
  more="false"
  ordering="false"
  icon=""
  inputType=""
  inputMask=""
  valueColumn=""
  labelColumn=""
  visibleColumn=""
  sortColumn=""
  idColumn=""
  renderIf=""
  cleanIf=""
  distinct=""
>
   Contains: Template containing {fields} and HTML components.
</silk:Column>

Location

The Column tag should be located as a child node of the silk:Table tag.

<silk:Table>
  <silk:Column title="Name" >
    {name}
  </silk:Column >
  <silk:Column title="Position" >
    <i>{position}</i>
  </silk:Column >
</silk:Table>

Properties

*Required property.

id*

The Column's unique identifier. Default Value: Empty.

title

The text to be displayed in the column header. The title will be displayed according to what is configured in the header property of the parent silk:Table component. Default Value: Empty.

align

The column's horizontal alignment: left, center, right. Default Value: left.

valign

The column's vertical alignment: top, middle, bottom. Default Value: middle.

width

The column's predefine fixed width. Default Value: Empty.

wrap

Defines if the column's content will be wrapped in narrow columns. Default Value: false.

renderer

The name of the JavaScript function that can be used to render the column content. The function receives three parameters: the row index, the record item, and the column's content. The function should return a text value. Default Value: Empty.

targetPage

The silk:Page's name will be shown when the column is clicked. Default Value: Empty.

cssClass

A CSS class to stylize the column. Default Value: Empty.

draggable

Defines if the column will listen to drag events. This will also show the "drag" icon. Default Value: false.

more

When set to "true," this will set the column to show the "menu" icon. Default Value: false.

ordering

When set to "true," the column header allows data ordering or sorting. Default Value: false.

icon

Defines the Font Awesome icon class to show together with the column's content. Default Value: Empty.

inputType

It terminates the input's type. This property is used when the table's inputs are being built. The values can be set as text, textarea, html, integer, decimal(x), or the name of the Data Provider property that contains the type to be used. Default Value: Empty.

inputMask

This property determines the input's mask. It is used when the table's inputs are being built. Usually, the mask is determined by the type of input selected. This property should be used if a different input mask is required. The mask uses the (JQuery Mask)[https://igorescobar.github.io/jQuery-Mask-Plugin/] library patterns, with the addition that if using a decimal mask, an extra "D" has to be added to the end of the mask. Default Value: Empty.

valueColumn

The name of the data column that will fill the input. Default Value: Empty.

labelColumn

The name of the data column used to define the input's label. Default Value: Empty.

visibleColumn

This property determines the input's visibility. It is used when the table's inputs are being built. The value is the DataProvider's property, which will decide whether the input should be rendered. The value should be numeric. If it is one (1), the input will be rendered; if it is zero(0), the input will not be rendered. Default Value: Empty.

sortColumn

The column used to sort the dataProvider. This does not work if the dataProvider's property treeData is set to "true". Default Value: Empty.

idColumn

Defines the input's identifier to be used to extract the entered data. Default Value: Empty.

renderIf

cleanIf

Logic statement indicating the condition in which the column cell should show empty. Keywords: empty. Default Value: Empty.

distinct

The column that will determine the distinct condition. If the column's value of the previous row is equal to the current row, the value will not be rendered. Default Value: Empty.

PreviousChartNextContent

Last updated 1 day ago

It contains the logic sentence defining whether the component should be rendered. The logic statement's explanation is in the documentation. Default Value: Empty.

Server Code Logic