Premium support for our pure JavaScript UI components


Post by pmiklashevich »

https://bryntum.com/products/schedulerpro/docs/api/Core/widget/DisplayField

new DisplayField({
    appendTo : targetElement,
    width    : 200,
    label    : 'Or use a template string',
    value    : '',
    template : age => age ? `${age} years old` : 'N/A'
});

It adds 'b-empty' cls to the field and the label is not aligned properly (I can fix with a CSS override)

new DisplayField({
    appendTo : targetElement,
    width    : 200,
    label    : 'Or use a template string',
    value    : '',
    placeholder : 'N/A'
});

Placeholder is ignored completely though it is mentioned in the docs.

The problem happens for Material Theme.

Attachments
Screen Shot 2023-07-15 at 22.00.15.png
Screen Shot 2023-07-15 at 22.00.15.png (1017.72 KiB) Viewed 84 times

Pavlo Miklashevych
Sr. Frontend Developer


Post by marcio »

Hey Pavlo,

Thanks for the report, I created a ticket to fix that https://github.com/bryntum/support/issues/7172

Best regards,
Márcio


Post Reply