FeatureTable with custom content

The sample demonstrates how to add fields containing custom content to the FeatureTable widget. The table contains FieldColumns, as well as standard Columns. In addition, it also has a custom ActionColumn.

The ability to generate virtual columns with custom content was introduced at version 4.30. This example contains multiple columns displaying different types of content with varying behavior. Each column and its behavior is outlined in the table below.

Field labelColumn typeDescription
IDFieldColumnNo custom content
School NameFieldColumnNo custom content
Enrollment CapacityColumnCreates custom content using formatFunction which returns a percentage of enrollment capacity and displays this using a Calcite Meter component
Calculate ExpressionColumnCreates custom content using formatFunction which returns a Calcite Action component which provides the ability to run a calculation individually. This can be useful in situations where there is an Arcade expression, but running this expression on every row may not be necessary. Once the button is clicked, it is replaced with the calculated arcade expression.
WebsiteFieldColumnCreates custom content using formatFunction which returns a Calcite Link component that opens up a new window with a link to the associated school's website.
EnrollmentFieldColumnNo custom content
Total EmployeesFieldColumnNo custom content
Ration of Students to EmployeesColumnCreates custom content using formatFunction which returns calculation of students to employees.
Go to featureActionColumnCreates a custom action that is based off specific behavior set within its callback. In this example, it zooms to the extent of the clicked feature.

Known Limitations

For a comprehensive list of limitations, please refer to the widget's API Reference documentation.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.