jQWidgets jqxTreeGrid statusBarHeight属性

  • Post category:jquery

以下是关于 jQWidgets jqxTreeGrid 组件中 statusBarHeight 属性的详细攻略。

jQWidgets jqxTreeGrid statusBarHeight 属性

jQWidgets jqxTreeGrid 的 statusBarHeight 属性用于组件底部状态栏的高度。您可以使用此属性来自定义状态栏的高度以适应您的应用程序需求。

语法

$('#treegrid').jqxTreeGrid({ statusBarHeight: height });

参数

  • height:状态栏的高度,以像素为单位。

示例

以下两个示例演示如何使用 statusBarHeight 属性。

示例 1

// 创建 jqxTreeGrid 组件
$('#treegrid').jqxTreeGrid({
  width: 500,
  height: 300,
  source: dataAdapter,
  columns: [
    { text: 'ID', dataField: 'id', width: 100 },
    { text: '名称', dataField: 'name', width: 200 },
    { text: '价格', dataField: '', width: 100 }
  ],
  statusBarHeight: 30
});

在示例 1 中,我们使用 jqxTreeGrid() 方法创建了一个 jqxTreeGrid 组件,并使用 { width: 500, height: 300, source: dataAdapter, columns: [...], statusBarHeight: 30 } 设置了组件的宽度、高度、数据源、列和状态栏高度。

示例 2

// 创建 jqxTreeGrid 组件
$('#treegrid').jqxTreeGrid({
  width: 500,
  height: 300,
  source: dataAdapter,
  columns: [
    { text: 'ID', dataField: 'id', width: 100 },
    { text: '名称', dataField: 'name', width: 200 },
    { text: '价格', dataField: 'price', width: 100 }
  ],
  statusBarHeight: 50
});

在示例 2 中,我们使用 jqxTreeGrid() 方法创建了一个 jqxTreeGrid 组件,并使用 { width: 500, height: 300, source: dataAdapter, columns: [...], statusBarHeight: 50 } 设置了组件的宽度、高度、数据源、列和状态栏高度。

总之,statusBarHeight 属性可以让您轻松地自定义 jQWidgets jqxTreeGrid 组件底部状态栏的高度,以适应您的应用程序需求。