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" { 1..6, 1 in top }

show table "Selected product" slices: slice { 1..6, 1..6 } with
  Parameters.Product
  Parameters.LeadTime
  Parameters.Color

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

Product LeadTime Color
Pants 12 Blue

Remarks

Only tiles with a slices: option are affected by the current slice selection.

In the new dashboard layout, slicepicker supports block positioning such as show slicepicker "Product parameters" { 1..6, 1 }. In this positioned form, the tile does not accept a with body. The entries are taken from the title: and optional subtitle: arguments of the slice by table declaration. Put the selected slice details in a separate sliced tile, such as a show table tile with the slices: slice option.

When a new-layout dashboard declares a Slices table and contains no tile in the top region, Envision automatically places the dashboard title in columns 1 through 8 and a slicepicker in columns 10 through 12 of that region. Placing any tile in top disables this default, so use an explicit show slicepicker to control its position.

StyleCode

For generic StyleCode rules, see stylecode.

User Contributed Notes
0 notes + add a note