slicepicker

slicepicker, tile type

The slicepicker tile provides navigation controls to select a slice from the Slices table.

Example

table Parameters[p] = with
  [| as Product, as LeadTime, as Color |]
  [| "Pants", 12, "Blue" |]
  [| "Cap", 7, "Red" |]
  [| "T-shirt", 5, "White" |]

table Slices[slice] = slice by p title: Parameters.Product

show slicepicker "Product parameters" with
  same(Parameters.LeadTime) as "Lead time"
  same(Parameters.Color) as "Color"

show table "Selected product" slices: slice with
  Parameters.Product
  Parameters.LeadTime
  Parameters.Color

When the slice “Pants” is selected, the table shows:

Product LeadTime Color
Pants 12 Blue

Remarks

The slicepicker values must be scalar per slice, so selectors like same or single are typically used. Only tiles with a slices: option are affected by the current slice selection.

StyleCode

For generic StyleCode rules, see stylecode.

User Contributed Notes
0 notes + add a note