support icon indicating copy to clipboard operation
support copied to clipboard

Support text overflow of narrow grid cells to use ellipsis

Open jsakalos opened this issue 3 years ago • 6 comments

It can be easily seen on https://bryntum.com/examples/grid/basic/ by narrowing the first column.

Screen Shot 2021-06-04 at 11 41 14

The reason for this behavior is that we have text directly in the cell and the anonymous cell node cannot be addressed by CSS. However, it behaves as a flex item, therefore the text is vertically centered.

The problem can be solved at the cost of adding one wrapping <span> around the text:

    columns : [
        {
            text       : 'Name',
            htmlEncode : false,
            renderer({ value }) {
                return `<span class="b-cell-content">${value}</span>`;
            }

and css:

		.b-cell-content {
			text-overflow: ellipsis;
			overflow: hidden;
		}

TreeColumn (also in Gantt) and frameworks' renderers should be resolved too

jsakalos avatar Jun 04 '21 10:06 jsakalos