|
import { L10n } from '@syncfusion/ej2-base';
L10n.load({
'en-US': {
pager: {
totalItemInfo: '({0} Beitrag)', // Locale key words for total item info for single item in the Grid
totalItemsInfo: '({0} Beiträge)'
}
}
});
export class Paging extends SampleBase {
render() {
return (
<div className="control-pane">
<div className="control-section">
<GridComponent
dataSource={data.slice(0, 1)}
locale="en-US"
allowPaging={true}
height={365}
pageSettings={{ pageCount: 4, pageSizes: true }}
>
<ColumnsDirective>
</ColumnsDirective>
<Inject services={[Page]} />
</GridComponent>
</div>
</div>
);
}
}
render(<Paging />, document.getElementById('sample')); |