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
  • Properties
  • logicGrid
  • target*
  • criteria*
  1. Silk Tags

LogicAction

The component silk:LogicAction links an element, or function, to a LogicGrid and will be affected by the logic result of the provided criteria. If the component is an object, the toggle method will be operated. If the element is a function, the logic result will be passed as a parameter.

It can operate as a standalone component or contain the criteria values.

Tag Definition

Used standalone:

<silk:LogicAction
  logicGrid=""
  target=""
  criteria=""
/>

Used as a container:

<silk:LogicAction
  logicGrid=""
  target=""
  criteria=""
>
   Contains: The group values determining the outcome of the logic action: value1:value2:...
</silk:LogicAction>

Properties

*Required property.

logicGrid

Sets the LogicGrid connected to the logic action. This is required if the action is defined outside a LogicGrid container. Default Value: Empty.

target*

Defines the component or components, separated by commas, that are toggled by the logic action. This could include the name of a function that will be called every time the logic status changes. Default Value: Empty.

criteria*

The group values determining the outcome of the logic action: value1:value2:... Default Value: Empty.

PreviousJScodeNextLogicDimension

Last updated 1 day ago