We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
I have this example:
var payload = Parser.start() .uint8('data_type') .uint8('data_length') .array('data', { type: 'uint8', length: 'data_length', formatter: function(array){ // ACCESS 'data_type' HERE!! return array } })
I want to be able to access data_type inside formatter of array.
I inspected this, but it wasn't clear how to get to this value. The scope is available in `length'.
this
Is this possible? If yes, how?
The text was updated successfully, but these errors were encountered:
In case it helps someone coming here from a search, look in #75 comments
Sorry, something went wrong.
Please try using $parent and $root introduced in #166.
$parent
$root
No branches or pull requests
I have this example:
I want to be able to access data_type inside formatter of array.
I inspected
this
, but it wasn't clear how to get to this value.The scope is available in `length'.
Is this possible? If yes, how?
The text was updated successfully, but these errors were encountered: