LearnNewsExamplesServices
Frontmatter
id5598
titleselection.Model: select() => add support for widgets using a collection instead of a store
stateOpen
labels
enhancementno auto close
assignees[]
createdAtJul 20, 2024, 9:09 PM
updatedAtMay 16, 2026, 10:50 PM
githubUrlhttps://github.com/neomjs/neo/issues/5598
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]

selection.Model: select() => add support for widgets using a collection instead of a store

Openenhancementno auto close
tobiu
tobiu commented on Jul 20, 2024, 9:09 PM

example: form.field.Time => creates a collection (can be discussed if it should be a store instead).

        items = (items = Array.isArray(items) ?
            items: [items]).map(item => item.isRecord ? view.getItemId(item) : Neo.isObject(item) ? item.id : item);

=> we need view.getItemId(item) for collection items as well.

inside the TimeField i added the hack to give items the isRecord flag as a workaround for now.

tobiu added the enhancement label on Jul 20, 2024, 9:09 PM
tobiu removed the stale label on Oct 19, 2024, 3:41 PM
tobiu added the no auto close label on Oct 19, 2024, 3:41 PM