@fabriceb

@fabriceb

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: How to refresh cards without creating new adapters ? #109932
    fabriceb
    Participant

    if you mean that in my example, I could just use :

    newArray = [];

    (// create new array)

    oMyCardView.dataSource = newArray;

     

    ==> it doesn’t work, you lose the description of the datafields, and some fields juste explode………

    see my example :

    https://codepen.io/mogador/pen/GRLJGXW

    if you click on 2nd button, some fields are unusable : text is transformed to data object.

     

    in reply to: How to force to have only 2 cards per row ? #109908
    fabriceb
    Participant

    Here is the soluce : just change this css variable : –smart-card-view-column-min-width

    I do it directly in js after init of the cardview :
    <div>$(“#myCard”).css(“–smart-card-view-column-min-width”, “600px”);</div>
    <div></div>
    <div>fabriceb</div>

    in reply to: Pie charts : I don’t succed in using addColorScheme #109251
    fabriceb
    Participant

    Hi I reply to myself, after using the Chat with Peter (Thanx Peter 😉 )…

    The problem was just that the component was not already loaded.

    in the codepen, I just have to add addColorScheme in window.onload :

    window.onload = () => {
    oChart3.addColorScheme(‘custom’, aCustomColors);
    oChart3.colorScheme = ‘custom’;
    }

    On my project, I was using the code in document.ready() : and it didn’t work.

    I replaced document.ready() with window.onload = (), and it works fine now.

     

    fabriceb

    in reply to: [editor] another issue with br tags and p tags #107366
    fabriceb
    Participant

    issue resolved in last version, thanx !!

    in reply to: [editor] issue with tags and key #107365
    fabriceb
    Participant

    issue resolved in last version, thanx !!

Viewing 5 posts - 1 through 5 (of 5 total)