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

Please add some usage to construct content from nodes #1

Open
ghost opened this issue Feb 17, 2017 · 7 comments
Open

Please add some usage to construct content from nodes #1

ghost opened this issue Feb 17, 2017 · 7 comments
Assignees

Comments

@ghost
Copy link

ghost commented Feb 17, 2017

subject

@ghost
Copy link
Author

ghost commented Mar 2, 2017

@edamov ...

@edamov
Copy link
Owner

edamov commented Mar 2, 2017

Oh, sorry @Aios
I didn't see your issue. I'll add small example soon. But library is still under development.

@edamov edamov self-assigned this Mar 2, 2017
@ghost
Copy link
Author

ghost commented Mar 2, 2017

Just okay - i Use it and have no problem) @edamov

@ghost
Copy link
Author

ghost commented Mar 2, 2017

I use it with laravel 5.3 - and having fun)

@edamov
Copy link
Owner

edamov commented Mar 6, 2017

Hi there.
I don't know how to add child node elements even with web interface. May be it is unsupported feature.
To add one level node you can use such example:

$el = new Telegraph\NodeElement('pre', [], ['Hello world']); // third parameter is required. I'll swap the second and the third parameters in the next release of library 
$page = $client->createPage('<token>', 'new Page', [$el], 'user', '', true);

@ghost
Copy link
Author

ghost commented Mar 6, 2017

That is building like node tree and working fine.

@edamov
Copy link
Owner

edamov commented Mar 6, 2017

In example I've provide you can't add child nodes.

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

1 participant