You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently if one wishes to customize the empty text container, the only option available is emptyTagName.
Sometimes we may need further customisation. For example in one of my projects I am using a custom font - Open Sans. I have a CSS class called font-open-sans which I apply to all elements that need this font. So currently I am unable to apply this class to the empty text container.
Incidentally, the summary text container does have an option called summaryCssClass (but strangely enough doesn't have a summaryTagName option).
So I think we need a new option called emptyCssClass, or maybe even a htmlOptions type option so that we can specify more attributes, such as id or data- attributes. What are your views on this?
The text was updated successfully, but these errors were encountered:
CListView applies class "empty" for the empty text container. Is it not enough to apply a font for it via CSS?
Also you may change `emptyText`` field and place whatever HTML you want there:
That's fine. I only suggest this as often I find things are a bit inconsistent.
For example what you mentioned above, I can also do that with summaryText - however summary has a summaryCssClass option available. So that makes it easier for me to achieve the desired output.
Currently if one wishes to customize the empty text container, the only option available is
emptyTagName
.Sometimes we may need further customisation. For example in one of my projects I am using a custom font - Open Sans. I have a CSS class called
font-open-sans
which I apply to all elements that need this font. So currently I am unable to apply this class to the empty text container.Incidentally, the summary text container does have an option called
summaryCssClass
(but strangely enough doesn't have asummaryTagName
option).So I think we need a new option called
emptyCssClass
, or maybe even ahtmlOptions
type option so that we can specify more attributes, such asid
ordata-
attributes. What are your views on this?The text was updated successfully, but these errors were encountered: