@ivanpeevski

@ivanpeevski

Forum Replies Created

Viewing 15 posts - 91 through 105 (of 129 total)
  • Author
    Posts
  • in reply to: css on blazor componet not applying #104011
    ivanpeevski
    Participant

    Hi Patrick,

    The Blazor CSS Isolation works by attaching a random attribute to the HTML element that works as a selector. However, our controls are generated dynamically and then selector key is lost. The trick is to wrap the blazor controls in a normal HTML element such as div, span or p. In this way, the selector key will be attached to the wrapper HTML and the inner controls will remain selectable. For example:

     

    parent.razor:

    <Child/>

     

    child.razor:

    <div><Button>Test</Button></div>

     

    child.razor.css:

    ::deep smart-button {
      background: red;
    }

    OR(if you wish to be more specific):

    div ::deep smart-button {
      background: red;
    }

     

    This creates a red button. I hope this was of help!

    Please feel free to contact us again, if you need further support

    Best Regards,
    Ivan Peevski

    Smart UI Team
    https://www.htmlelements.com/

     

    • This reply was modified 1 year, 5 months ago by ivanpeevski.
    • This reply was modified 1 year, 5 months ago by ivanpeevski.
    in reply to: Pass multiiple json data to create graph #103799
    ivanpeevski
    Participant

    <div class=”bbp-voting bbp-voting-post-103791 view-only bbp-voting-float”></div>
    Hi salasidis,

     

    The X axis in the demo looks crowded because xAxis -> unitInterval is set to 1. This forces the chart to show every single x Axis element. If you remove that, it will be automatic and will update the distance between the labels.

     

    Best Regards,
    Ivan Peevski

    Smart UI Team
    https://www.htmlelements.com/

    in reply to: Change series name #103797
    ivanpeevski
    Participant

    Hi,

    It is implemented in the same way.

    See the code for the demo here: Area Range and Line Series

     

    Best Regards,
    Ivan Peevski

    Smart UI Team
    https://www.htmlelements.com/

     

    in reply to: Ungrouping events #103796
    ivanpeevski
    Participant

    Hi Blago,

     

    Thanks for the additional details!

    I am seeing a 403 Forbidden message for the images. However the code was useful to reproduce your implementation.

    This is indeed an issue with the Scheduler, I have opened a work item for it and we will work on fixing this for our next releases.

    As a workaround, you can dispatch a ‘resize’ Event, which will force the Scheduler to re-render its cells and remove the grouping cell.

    You can have a look at a demo here: codepen

     

    I hope this will be of help! If you have any further questions, feel free to contact us again.

    Best Regards,
    Ivan Peevski
    Smart UI Team
    https://www.htmlelements.com/

    in reply to: Change series name #103792
    ivanpeevski
    Participant

    Hi salasidis,

     

    Yes, you can use displayText for that. For example:

    {dataField: ‘A’, displayText: ‘Average’, ….}

    You can also see an example in the demo here: Stacked Line Series

     

    Best Regards,
    Ivan Peevski

    Smart UI Team
    https://www.htmlelements.com/

    in reply to: Pass multiiple json data to create graph #103791
    ivanpeevski
    Participant

    Hi salasidis,

    You can have a look at the code for the Live Update demo.

    You can just push the next month data one by one in the dataSource, but the chart will draw them only if you call chart.update() after that

     

    Best Regards,
    Ivan Peevski

    Smart UI Team
    https://www.htmlelements.com/

    in reply to: DetailRow Height #103790
    ivanpeevski
    Participant

    Hi Gilles,

     

    Unfortunately, this is not supported.

    All row details must be the same height. You can only adjust the size of the elements inside the row detail

     

    Best Regards,
    Ivan Peevski
    Smart UI Team
    https://www.htmlelements.com/

    in reply to: Ungrouping events #103778
    ivanpeevski
    Participant

    Hi BLaGO,

    Currently, only the resources property has a change listener, and not any of the properties of its items. So the only way to force a refresh on the header is to ‘refersh’ the resources property.
    So similar to the demo here: Scheduler Resources, you need to first copy the resources[0] object to a new variable and change its dataSource. Then set resources to a new array containing the update object.

    For example:

     

    let newResourceObject = document.querySelector(‘smart-scheduler’).resources[0];
    newResourceObject.dataSource = [];
    document.querySelector(‘smart-scheduler’).resources = [newResourceObject];

     

    Best Regards,
    Ivan Peevski
    Smart UI Team
    https://www.htmlelements.com/

     

    • This reply was modified 1 year, 7 months ago by ivanpeevski.
    ivanpeevski
    Participant

    Hi Pavan,

     

    Thanks for the feedback! We will further investigate the issue and fix it for our next releases.

    Until then, the best workaround is to set value as an array like our demo here

     

    Best Regards,
    Ivan Peevski
    Smart UI Team
    https://www.htmlelements.com/

    in reply to: Date time calendar tab header undefined in italian #103652
    ivanpeevski
    Participant

    Hi,

    After you set the locale, you should use the messages property to set the translations of dataTabLabel and timeTabLabel

    Please see the example here: DateTimePicker locales

     

    The first day of the week can be changed with the firstDayOfWeek property. You should set it to “1” for Monday.

    Best regards,
    Ivan Peevski

    Smart UI Team
    https://www.htmlelements.com/

     

    in reply to: value to uppercase #103549
    ivanpeevski
    Participant

    Hi Dark Beccio,

     

    You can achieve this with some CSS.

    smart-input input{
    text-transform:uppercase;
    }

     

    Please note that this is only a visual change and doesn’t change the actual value of the input.

     

    Best regards,

    Ivan Peevski

    Smart UI Team
    https://www.htmlelements.com/

    in reply to: disable mouse scroll wheel #103548
    ivanpeevski
    Participant

    Hi Dark Beccio,

     

    Currently there is no other property to control this.

    I have created a work item and we will evaluate this as a new feature in a future release.

     

    Best regards,

    Ivan Peevski

    Smart UI Team
    https://www.htmlelements.com/

    in reply to: is there a delete event? #103511
    ivanpeevski
    Participant

    Hi,

    In this case, please see the example here: codepen

    If the row was deleted with the delete command button, you can use the onCommand callback function to get the row index before it was deleted. It also allows you to cancel the row delete operation by setting command.handled = true;

     

    Best Regards,
    Ivan Peevski
    Smart HTMLElements Team
    https://www.htmlelements.com/

    in reply to: Data Grid Cell Tooltip #103508
    ivanpeevski
    Participant

    Hi Martin,

    Tooltips are enabled with the appearance.showTooltips property.

    By default, the value of the tooltip is the value of the cell. Using the cell’s tooltip property allows you to set custom content.

    See an example here: codepen.

    Best Regards,
    Ivan Peevski
    Smart HTMLElements Team
    https://www.htmlelements.com/

     

     

    in reply to: is there a delete event? #103507
    ivanpeevski
    Participant

    Hi,

    The onRowRemoved callback function is used for that.

    Please note that it is set as a property, and not as an Event.

    You can see an example here: codepen. The indexes of the row will be console logged.

     

    Best Regards,
    Ivan Peevski
    Smart HTMLElements Team
    https://www.htmlelements.com/

Viewing 15 posts - 91 through 105 (of 129 total)