Results 1 to 2 of 2

Thread: What is the best way to clear component state?

  1. #1
    Sencha User
    Join Date
    May 2011
    Location
    Raleigh, NC
    Posts
    5
    Vote Rating
    0
      0  

    Default What is the best way to clear component state?

    I want to clear the existing state for a component. This code works:

    PHP Code:
    Ext.state.Manager.clear(this.getStateId()); 
    However, I noticed that Ext.state.Stateful#getStateId is marked as private. Why is this? Is there another way to clear a stateful component?

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,385
    Answers
    3997
    Vote Rating
    1540
      0  

    Default

    I wonder why it is marked as private. Anyway, getStateId is a stable method that will stick around for the foreseeable future.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •