LearnNewsExamplesServices
Frontmatter
id6280
titleNeo.assignToNs()
stateClosed
labels
enhancement
assigneestobiu
createdAtJan 24, 2025, 1:19 AM
updatedAtJan 24, 2025, 3:18 PM
githubUrlhttps://github.com/neomjs/neo/issues/6280
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 24, 2025, 3:18 PM

Neo.assignToNs()

Closed v8.8.0 enhancement
tobiu
tobiu commented on Jan 24, 2025, 1:19 AM

this method would be nice to have.

i am using code like this in multiple spots:

let nsArray = fieldName.split('.');

fieldName = nsArray.pop();
scope     = Neo.ns(nsArray, true, data);

scope[fieldName] = value

the method should work like:

Neo.assignToNs('annotations.selected', false, record)

params: key, value, scope

tobiu added the enhancement label on Jan 24, 2025, 1:19 AM
tobiu assigned to @tobiu on Jan 24, 2025, 1:19 AM
tobiu referenced in commit 34d2cc7 - "Neo.assignToNs() #6280" on Jan 24, 2025, 3:02 PM
tobiu closed this issue on Jan 24, 2025, 3:18 PM