Comments (3)
The documentation is wrong/misleading. You would need to sth like this instead
$ul = Html::el('ul');
$ul->create('li', ['class' => 'first'])->setText('hello');
from utils.
Thanks for the response - working with the $ul
variable gives the expected result.
from utils.
fixed in documentation
from utils.
Related Issues (20)
- Add PHP 8.1 support HOT 1
- paginator: add methods for first and last record on page HOT 1
- Error ! - ReflectionProperty::getType() HOT 3
- why methods are deprecated Nette\Utils::getReturnTypes(), Nette\Utils::getParameterTypes() Nette\Utils::getPropertyTypes() ?
- Callback - bug with closure and private/protected methods HOT 3
- Strings::indexOf() ends with ValueError for empty $haystack for negative $nth
- Impossible pattern validation for enums HOT 1
- Could `Json::encode()` allow `JSON_INVALID_UTF8_SUBSTITUTE` HOT 1
- `Json::encode` does not support the flag `JSON_HEX_AMP` HOT 1
- annotation @method not correctly parsed HOT 1
- Deprecation warning on DateTime::createFromFormat with PHP 8.1 HOT 3
- Strings::webalize($haystack, '-') generates duplicate minus HOT 4
- `HtmlStringable` should be also `Stringable` HOT 1
- Missing method Json::decodeFile()
- Compatibility of Nette/Utils with PHP 8.3.2 - warning is generated by StaticClass HOT 2
- NormalizePath is not compatible with mikey179/vfsstream HOT 29
- How can I customize response messages for the user HOT 1
- Incorrect argument type definition in `addHtml` method HOT 1
- Compile Error - Declaration of Nette\SmartObject::__call HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from utils.