Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Make selectorClass accept function #9

Open
niksy opened this issue Feb 14, 2018 · 2 comments
Open

Make selectorClass accept function #9

niksy opened this issue Feb 14, 2018 · 2 comments

Comments

@niksy
Copy link

niksy commented Feb 14, 2018

If selectorClass accepts function as value, it could be used for more expressive checks, e.g.

<drag-select-container :selectorClass="vm => vm.$el.hasClass('item')">
	<template scope="{ selectedItems }">
		<!-- ... -->
	</template>
</drag-select-container>

But with this name selectorClass is not descriptive enough. Maybe rename it to something like selectableItem?

@stephan281094
Copy link
Owner

Great idea! This should definitely be implemented. I'm not sure about the new name though. I agree that selectorClass needs to go, but is selectableItem clear enough? (cc @FrancisKong)

@FrancisKong
Copy link
Contributor

What about selectableItems is an array of nodes or components?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants