@tbettinazziaxioma-it

@tbettinazziaxioma-it

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 116 total)
  • Author
    Posts
  • in reply to: Grid template as button #112584

    Tks, it seems to work.

    There’s only a side effect I don’t understand.

    When I click the button, rows in the grid shrink.

    Why ?

    Tullio

     

    in reply to: Buttons in a table cell #112580

    Sorry but I don’t see any clickable button on the table.

    The info field doesn’t react to any click.

    Looking at source code I don’ see any button or smart-button in it.

    Tks

    in reply to: Grid template as button #112568

    I created a testcase I’ll append below.

    In the demo the relevant object is the Quantity field .

    Running it as a demo You’ll see :

    . clicking on the + in the Quantity field the dimension of the first row will reduce (why ?)

    . clicking on the + button in the first line You’ll never see the required action (open a page in another window)

    . clicking on the + button in the second line You’ll  see sometime the required action (open a page in another window) and sometime not.

    If you remove editing it works (but I need it for another field not in the demo).

    I’ll send the testcase by mail.

    Tks for Your help

    Tullio

    in reply to: Grid template as button #112563

    The problem seems to be more complex.

    I’ setted the template as shown below and the button is allways shown but clicking the button sometimes it works and sometime it doesn’t.

    To be more clear sometime I see “Piu” and the new page opens; sometime I see “Passo di qui” and  “Passo di qua” on the console.

    Why ?

    tks
    {label : ‘Quantity’, dataField : ‘XXX_Q’, showIcon: true, align: ‘center’, icon: ‘fa-plus-circle’, cellsAlign: ‘center’, width: 120,
    template: function(formatObject) {
    if (!formatObject.template) {
    console.log(“Passo di qui”);
    const plus = document.createElement(‘smart-button’);
    plus.innerHTML = ‘<span class=”fa fa-plus cfg-button-font-icon”></span>’;
    plus.addEventListener(‘click’, () => {
    console.log(“Più”);
    window.open(“https://www.w3schools.com&#8221;);
    });
    const template = document.createElement(‘div’);
    template.appendChild(plus);
    formatObject.template = template;
    }
    else {
    console.log(“Passo di qua”);
    }
    }
    },

    in reply to: Grid template as button #112561

    I looked at the example.

    In my environment itm didn’t work and then I tryed to reproduce in your demo.

    I modify the code as shown below simply adding some console.log but the console.log is never executed or, better, I don’t see the message. Why ?

    Tks

    { label: ‘Quantity’, dataField: ‘Quantity’, showIcon: true, align: ‘center’, icon: ‘fa-plus-circle’, cellsAlign: ‘center’, width: 120,
    template: function (formatObject) {
    if (!formatObject.template) {
    console.log(‘Entrato’);
    const data = document.createElement(‘span’);
    const plus = document.createElement(‘smart-button’);
    const minus = document.createElement(‘smart-button’);
    plus.style.background = getChipColor(0);
    minus.style.background = getChipColor(5);
    plus.innerHTML = ‘<span class=”fa-plus”></span>’;
    minus.innerHTML = ‘<span class=”fa-minus”></span>’;
    data.innerHTML = formatObject.value;
    data.style.marginLeft = ‘7px’;
    plus.row = formatObject.row;
    minus.row = formatObject.row;
    plus.addEventListener(‘click’, () => {
    const row = plus.row;
    console.log(‘plus ‘);
    row.getCell(‘Quantity’).value += 5;
    });
    minus.addEventListener(‘click’, () => {
    const row = minus.row;
    console.log(‘Minus ‘);
    row.getCell(‘Quantity’).value -= 5;
    });
    const template = document.createElement(‘div’);
    template.appendChild(data);
    template.appendChild(minus);
    template.appendChild(plus);
    formatObject.template = template;
    }
    else {
    formatObject.template.firstChild.innerHTML = formatObject.value;
    const buttons = formatObject.template.querySelectorAll(‘smart-button’);
    buttons[0].row = formatObject.row;
    buttons[1].row = formatObject.row;
    }
    }

    in reply to: Problems with tab dimension #112274

    Sorry but I already have the name attribute in the dropdown list but still it doesn’t work.

    Data are not sent back by the form.

    Tks

    in reply to: Problems with tab dimension #112270

    I’m forced to reopen this issue because the problem went out again.

    Using auto-height in smatr-tabs id there’s a combo opening in the tab it’s not shown completely.

    I can’t use the dropDownAppendTo feature to append id to the body becuase the combo whithin a form andI don’t get back the selected value.

    How can I solve that issue ?

    Tks

    in reply to: Creating many and many tooltips #111924

    I created a testcase on codpenn

    You’ll see that if You comment the last appendChild it goes faster in a visible way.

    Tks

    https://codepen.io/tullio0106/pen/xbKEZjz

    in reply to: Adding text to Window with #111918

    It works but the HTML is still not understood and <br/> is not interpreted as carriage return.

    Tks

    in reply to: Adding text to Window with #111912

    Sorry but it doesn’t seem to work.

    With the following js code the window appears empty with any message I can use (also “Bye”).

    const window = document.createElement(“smart-dialog-window”);
    window.innerHTML= message;

    in reply to: Tooltip opacity #111806

    I already did it but I didn’t see anything strange : the opacity is set to 1 but the tooltip it’s still transparent (I use Firefox).

    in reply to: Tooltip opacity #111803

    I’m not able to unberstand where the problem could be.

    Your testcase works.

    If I put my css classes in Your testcase it still works.

    In my environment I verified that opacity is set 1 and is kept but the tooltip is still trasparent (background yellow)

    I dont’ see where I should look for.

    Any further suggeston ?

    Tks

     

    in reply to: Tooltip opacity #111796

    Done but nothing changed.

    The value is kept but the the tooltip is still transparent and poorly readable.

    Tks

    in reply to: Circular progres bar centered #111791

    I’m still not able to make it working.

    Please look at https://codepen.io/tullio0106/pen/qBegvaM

    The esternal div has all required css properties as You described but the progress bar is still in the left upper side corner.

    Tks

    in reply to: Buttons size #111770

    Tks but it still doesn’t work

    The only change is that display:flex adds also a harmful new line.

    I updated the testcase.

    Tks

Viewing 15 posts - 1 through 15 (of 116 total)