Hi team !
Could you help me understand a couple of things ?
Reference link: https://bryntum.com/products/taskboard/examples/responsive/
#1 In above link example we have responsive-> small and then
// Hide tags from cards
footerItems : {
'tags > resourceAvatars' : { hidden : true }
},
Now if i click on mobile from bar, it says small, but I am still able to see tags and resources avatar
So what does this code do ? 'tags > resourceAvatars' : { hidden : true }
#2 According to this doc : https://bryntum.com/products/taskboard-next/docs/api/TaskBoard/view/mixin/ResponsiveCards
Depending upon card size the number of resourceAvatars will appear in cards right ?
So i updated above example like this
Added this(cardSize config small) in all cases, yet it won't limit the number to 1 and max numbers are always coming not adjusting ? or does below config do something else ?
cardSizes: [
{ name : 'small' }
]
responsive : {
small : {
when : 375, // when width <= 375
// Configs applied for this state
features : {
columnToolbars : {
disabled : true
}
},
// Hide count from headers to save a bit of space
showCountInHeader : false,
// Hide tags from cards
footerItems : {
'tags > resourceAvatars' : { hidden : true }
},
// This state uses a callback to hide a column on the TaskBoard
callback({ source }) {
source.columns.done.hidden = true;
source.columns.considering.hidden = true;
},
cardSizes: [
{ name : 'small' }
]
},
// Custom responsive state
narrow : {
when : 600, // when width <= 600
// Configs applied for this state
showCountInHeader : false,
footerItems : {
'tags > resourceAvatars' : { hidden : true }
},
// This state uses a callback to hide a column on the TaskBoard
callback({ source }) {
source.columns.done.hidden = true;
source.columns.considering.hidden = false;
},
cardSizes: [
{ name : 'small' }
]
},
medium : {
when : 850, // when width <= 850
// This state also hides the column
callback({ source }) {
source.columns.done.hidden = true;
source.columns.considering.hidden = false;
},
cardSizes: [
{ name : 'small' }
]
},
large : {
// when width > 850
// This state also has to have a callback to bring the column back again
callback({ source }) {
source.columns.done.hidden = false;
source.columns.considering.hidden = false;
},
cardSizes: [
{ name : 'small' }
]
},
'*' : {
// These configs are merged key-for-key with the configs of the other states and act as defaults
// for them. These values are used by medium/large states and are partially overridden by the
// narrow state. Having defaults here ensures that these configs are restored when switching from
// the small state to another state.
features : {
columnToolbars : {
disabled : false
}
},
showCountInHeader : true,
footerItems : {
'tags > resourceAvatars' : { hidden : false }
}
}
},