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

Add a 'value' property #2

Closed
evanplaice opened this issue Apr 12, 2019 · 1 comment
Closed

Add a 'value' property #2

evanplaice opened this issue Apr 12, 2019 · 1 comment
Labels
feature New feature

Comments

@evanplaice
Copy link
Member

evanplaice commented Apr 12, 2019

The ability to side-load data into the WC will be hugely valuable for certain use cases (ex live MD editor).

For example

HTML:

<wc-markdown id='markdown-preview'></wc-markdown>

Javascript:

document.getElementById('markdown-preview').value = `some raw markdown`;

It might also be beneficial to add the rest of the attribs to the list of ObservableAttributes.

@evanplaice evanplaice added the feature New feature label Apr 12, 2019
@evanplaice evanplaice mentioned this issue Apr 12, 2019
3 tasks
@evanplaice evanplaice changed the title Add a 'data' property Add a 'value' property Oct 29, 2019
@evanplaice
Copy link
Member Author

Added in 1.3.0

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

No branches or pull requests

1 participant