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

hook() function #5

Open
3 of 5 tasks
D-Maxwell opened this issue Oct 7, 2022 · 2 comments
Open
3 of 5 tasks

hook() function #5

D-Maxwell opened this issue Oct 7, 2022 · 2 comments
Assignees
Labels
planned Features to be added

Comments

@D-Maxwell
Copy link
Owner

The ship() function currently returns nothing but selectors. In the end, its aim is to return all of a crate's attributes.

Selectors

Crates may be selected by their :

  • Tag
  • Id
  • Class
  • Eventually by their any of their attributes
  • State (pseudo class like)

This function generates Crates, thought at the moment it does so without any of their arguments.

@D-Maxwell D-Maxwell added the planned Features to be added label Oct 7, 2022
@D-Maxwell D-Maxwell self-assigned this Oct 7, 2022
@D-Maxwell D-Maxwell added this to Crated Oct 7, 2022
@D-Maxwell D-Maxwell moved this to Todo in Crated Oct 7, 2022
@D-Maxwell D-Maxwell moved this from Todo to In Progress in Crated Oct 7, 2022
@D-Maxwell
Copy link
Owner Author

D-Maxwell commented Oct 31, 2022

Whilst ship() does not "return" anything, it does generate sub-objects. The in the works hook() function may later be used to effectively get certain crates depending on given filters, all already listed above.

The hook() function will require a space to look within, as well as a "path", consisting of various optional selectors.
For instance :

hook(dock["index"], ".group1A")

Will look for all crates within the "index" cargo that have been assigned the class "group1A", regardless of any other attributes of theirs.

I hereby rename this issue to fit its new purpose : describe the progression of the hook() function.

@D-Maxwell D-Maxwell changed the title ship() should output args and children hook() function Oct 31, 2022
@D-Maxwell D-Maxwell moved this from In Progress to Todo in Crated Oct 28, 2023
@D-Maxwell
Copy link
Owner Author

hook is dead, long live hook

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
planned Features to be added
Projects
Status: Todo
Development

No branches or pull requests

1 participant