Stripe

Stripes rows by adding alternating CSS classes to all row elements (b-even and b-odd).

This feature is disabled by default.

let grid = new Grid({
  features: {
    stripe: true
  }
});

Stripe
//<code-header>
fiddle.title = 'Stripe';
//</code-header>
const grid = new Grid({
    appendTo : targetElement,

    // makes grid as high as it needs to be to fit rows
    autoHeight : true,

    features : {
        // enable striping
        stripe : true
    },

    data : DataGenerator.generateData(5),

    columns : [
        { field : 'name', text : 'Name', flex : 1 },
        { field : 'team', text : 'Team', flex : 1 },
        { type : 'number', field : 'rank', text : 'Rank', flex : 1 }
    ]
});

Configs

9

Common

disabledInstancePlugin
listenersEvents

Misc

clientInstancePlugin
localeClassLocalizable
localizableLocalizable

Other

Properties

15

Common

disabledInstancePlugin

Class hierarchy

isStripe: Boolean= truereadonly
Identifies an object as an instance of Stripe class, or subclass thereof.
isStripe: Boolean= truereadonlystatic
Identifies an object as an instance of Stripe class, or subclass thereof.
isEventsEvents
isInstancePluginInstancePlugin
isLocalizableLocalizable

Lifecycle

configBase

Misc

clientInstancePlugin
localeHelperLocalizable
localeManagerLocalizable

Other

Functions

28

Configuration

applyDefaultsstaticBase

Events

Lifecycle

destroystaticBase

Misc

doDisableInstancePlugin
initClassstaticBase
isOfTypeNamestaticBase
mixinstaticBase
optionalLstaticLocalizable

Other

LstaticLocalizable
onEvents
relayAllEvents
triggerEvents
unEvents

Events

5
catchAllEvents
destroyEvents
disableInstancePlugin
enableInstancePlugin

Event handlers

5
onDestroyEvents
onDisableInstancePlugin
onEnableInstancePlugin

Typedefs

1

CSS variables

3
NameDescription
--b-stripe-odd-colorBackground for odd rows when striped
--b-stripe-even-colorBackground for even rows when striped
--b-stripe-border-widthBorder width for the stripe rows, mainly intended to be used by high contrast themes