jxGridRules top-level property

List<JxRuleContract> jxGridRules
final

Grid : cols:, rows:, span:, rspan:, gx:, gy: (à combiner avec grid ou d:grid).

Implementation

final List<JxRuleContract> jxGridRules = [
  JxValueRule(
    'grid-template-columns',
    properties: {
      'cols': ['grid-template-columns'],
    },
    keywords: _tracks(12),
  ),
  JxValueRule(
    'grid-template-rows',
    properties: {
      'rows': ['grid-template-rows'],
    },
    keywords: _tracks(6),
  ),
  JxValueRule(
    'grid-column',
    properties: {
      'span': ['grid-column'],
    },
    keywords: {
      for (var i = 1; i <= 12; i++) '$i': 'span $i / span $i',
      'full': '1 / -1',
    },
  ),
  JxValueRule(
    'grid-row',
    properties: {
      'rspan': ['grid-row'],
    },
    keywords: {
      for (var i = 1; i <= 6; i++) '$i': 'span $i / span $i',
      'full': '1 / -1',
    },
  ),
  const JxValueRule(
    'gap-axis',
    properties: {
      'gx': ['column-gap'],
      'gy': ['row-gap'],
    },
    themeCategory: JxThemeCategory.spacing,
    disallowed: {'auto'},
  ),
];