jQWidgets Forums

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Left side ellipsis Left side ellipsis #47815

    awethentik
    Participant

    Peter,

    Any ideas on getting a callback on “columnsresized” only after all the cells are re-rendered? Currently “columnsresized” happens before.

    I’m trying to implement this code to dynamically set the left ellipsis:

    function setLeftEllipsis(){
    	var cellsRight = $('.cell-right');
    	var cellsRightLen = cellsRight.length;
    	for (i=0; i<cellsRightLen; i++){
    		var cellWidth = $(cellsRight[i]).width();
    		var cellChildWidth = $(cellsRight[i]).children().first().width();
    		if (cellWidth < cellChildWidth){
    			$(cellsRight[i]).addClass('left-ellipsis');
    		} else {
    			$(cellsRight[i]).removeClass('left-ellipsis');
    		}
    	}
    }
Viewing 1 post (of 1 total)