Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pegar a key do atomo #8

Open
Guihgo opened this issue Jan 15, 2020 · 0 comments
Open

Pegar a key do atomo #8

Guihgo opened this issue Jan 15, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@Guihgo
Copy link
Member

Guihgo commented Jan 15, 2020

Add o recurso de saber a Key do Atomo dentro de sua classe, sugestão:

class Main {
   onRender() {
      let key = this.getKey()
   }
}
module.exports.main = Main

ou para não reservar mais uma função (this.getKey()) , colocar a key do atomo junto com seu objeto Atomic , igualmente como já se faz para pegar o id do atomo (this.getElement().Atomic.id) , por exemplo:

class Main {
   onRender() {
      let key = this.getElement().Atomic.key
   }
}
module.exports.main = Main
@Guihgo Guihgo added the enhancement New feature or request label Jan 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant