A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.dhtmlx.com/suite/grid/api/grid_dragpanel_config/ below:

JavaScript Grid - dragPanel Config

The following example demonstrates configuring the DragPanel module with custom styling and width:

<style>
.custom-drag-panel {
background-color: var(--dhx-color-primary);
border: 1px solid var(--dhx-color-secondary);
}
</style>

<script>
const grid = new dhx.Grid("grid_container", {
columns: [
{ id: "a", header: [{ text: "A" }] },
{ id: "b", header: [{ text: "B" }] },
],
data: [
{ id: "1", a: "A1", b: "B1" },
{ id: "2", a: "A2", b: "B2" },
],
dragPanel: {
css: "custom-drag-panel",
icon: "dxi dxi-drag",
width: 40
}
});
</script>

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4