Sch.model.Event visibility support

Ask for help relating to our Sencha Touch based Scheduler (for iPad, or any other supported phone, phablet or tablet)
Post Reply
User avatar
ars_adnovate
Posts: 3
Joined: Thu Mar 12, 2015 11:40 am

Sch.model.Event visibility support

Post by ars_adnovate »

Hi there,

In Sch.model.Event (http://www.bryntum.com/docs/touch-sched ... odel.Event) it would be great to have additional Visible field and setVisible(), isVisible() methods which are bound to view
or at least could anyone please give a clue how to emulate this behaviour in a correct manner.

Thanks.

User avatar
mats
Core Developer
Core Developer
Posts: 16716
Joined: Sat Dec 19, 2009 11:41 pm
Location: Sweden
Contact:

Re: Sch.model.Event visibility support

Post by mats »

Remember, the Sch.model.Event is a *data* class - it has no clue about being visible or not. What are you trying to achieve?
Tired of debugging javascript errors in web applications? Try our new error logging service RootCause, or read more on the Sencha blog

@bryntum
Facebook
API documentation

User avatar
ars_adnovate
Posts: 3
Joined: Thu Mar 12, 2015 11:40 am

Re: Sch.model.Event visibility support

Post by ars_adnovate »

Well, not really data, because it already contains Cls class.

I'm just trying to show/hide a specific event without removing the whole record from store.

User avatar
mats
Core Developer
Core Developer
Posts: 16716
Joined: Sat Dec 19, 2009 11:41 pm
Location: Sweden
Contact:

Re: Sch.model.Event visibility support

Post by mats »

Filter the store then, or use the Cls field to achieve what you need. Very easy :)
Tired of debugging javascript errors in web applications? Try our new error logging service RootCause, or read more on the Sencha blog

@bryntum
Facebook
API documentation

User avatar
ars_adnovate
Posts: 3
Joined: Thu Mar 12, 2015 11:40 am

Re: Sch.model.Event visibility support

Post by ars_adnovate »

Filter store ? Could you please point on the correct property/method/class ?

User avatar
mats
Core Developer
Core Developer
Posts: 16716
Joined: Sat Dec 19, 2009 11:41 pm
Location: Sweden
Contact:

Re: Sch.model.Event visibility support

Post by mats »

Tired of debugging javascript errors in web applications? Try our new error logging service RootCause, or read more on the Sencha blog

@bryntum
Facebook
API documentation

Post Reply