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

Managing Properties in HTML #2

Closed
PullJosh opened this issue Jul 18, 2015 · 22 comments
Closed

Managing Properties in HTML #2

PullJosh opened this issue Jul 18, 2015 · 22 comments

Comments

@PullJosh
Copy link
Contributor

How do we want to deal with properties of objects?

My thought was to have infinite inputs, like in the join block from Snap!
image

Each of these inputs would be "property inputs", which could contain "property blocks". Each property block would have two inputs, and look something like this:
image
(Images created with Snap! custom blocks and "save scripts pic" in rt. click menu)

The only difference, though, would be that the first input in the property block could must be a dropdown.

@quat1024
Copy link
Contributor

It would be super super cool if there was a dropdown menu on the left half of the block (class, id, etc), but because of the sheer number of html attributes, how do we make the menu not fill the whole screen? There's a loooooooooooooot of attributes in html.

@PullJosh
Copy link
Contributor Author

Hmm... how about a searchable dropdown, that only shows up to, say, 10 items at a time. You can scroll through it like the scratch key press block dropdown, or you can type to filter out attributes. :D

@quat1024
Copy link
Contributor

Yeahhhh

It would be sorted in alphabetical order, starting from the second page. The most commonly used ones would be on the first page too for easier access. 😄

@towerofnix
Copy link
Member

Make it so that the input is a text-dropdown so that you can type in it, say, data-line-id.

@PullJosh
Copy link
Contributor Author

Like the list blocks in scratch (item [EPIC DROPDOWN] of list [bleh dropdown]), but searchable.

@matthewr6
Copy link
Contributor

I've made searchable dropdowns before in HTML (React.js is amazing), but do we plan to use canvas or the dom?

@quat1024
Copy link
Contributor

^ Good question

@matthewr6
Copy link
Contributor

What does pixie use?
IMO, dom would be easier.

I think.

But if we do DOM, I would suggest that everybody play with Riot.js and React.js because they're really good for components (blocks, in this case) - especially Riot, since it's easier.

@PullJosh
Copy link
Contributor Author

I'm not sure what's best, in this case, but DOM seems to make a bit more sense...

I'll check out Riot.

@quat1024
Copy link
Contributor

What does pixie use?

Some quick Inspect-Elementing tells me that pixie uses a separate for every block, and absolutely-positions them in the DOM. http://imgur.com/j5edLt5

@matthewr6
Copy link
Contributor

I vote using the DOM.

@PullJosh
Copy link
Contributor Author

@quat1024 Huh... That's pretty neat, actually. Surprised it's still fast.

Ohwait. This isn't Scratch. Everything is fast.

@matthewr6
Copy link
Contributor

lol
until you do any sort of database query on thousands to tens of thousands of entries.

@an-OK-squirrel
Copy link
Contributor

Here's an idea! (I would help with stuff once you get going :P)
hahaha

@an-OK-squirrel
Copy link
Contributor

(bad drawing lelz)

@glacialcascade
Copy link
Contributor

I like drop down idea

@an-OK-squirrel
Copy link
Contributor

I bet you would like mine if I drew it in more than a minute :P

@matthewr6
Copy link
Contributor

I like both :P

@an-OK-squirrel
Copy link
Contributor

I feel mine would feel cleaner.

@matthewr6
Copy link
Contributor

It certainly doesn't based on the drawing xD

@an-OK-squirrel
Copy link
Contributor

xD

@quat1024 quat1024 added the major label Jul 23, 2015
@quat1024 quat1024 modified the milestone: Public Alpha Jul 23, 2015
@PullJosh
Copy link
Contributor Author

Will do original suggestion, with searchable dropdown for first input.

@matthewr6 matthewr6 mentioned this issue Jul 26, 2015
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants