Comments (4)
@MartkCz I tried that already, does not work for us either, because we have createElements as a separate function call after construct, so when whenAttached()
is called in this case, there is nothing in the multiplier yet. It would have to be some event after createComponent but before handleSignal/fireEvents.. No idea what that could be.
On the other hand removing $this (presenter) from the constructor seems to work fine atm. And moving createElements to constructor before parent::__construct() would be probably acceptable too as we only use the multiplier in a couple of special components and can cover that with some comments to explain the difference to other code.
from forms-multiplier.
This is old nette syntax, the correct is:
public function createComponentAbcForm() : AbcForm {
$form = new AbcForm();
// ...
}
from forms-multiplier.
Probably fixed by e3a337b
from forms-multiplier.
Hi there. I have same problem. The attached method is called before I am able to add create and remove button. Its called in contributte/forms-multiplier/src/Multiplier.php:516
when the multiplier is assign to the form. I have one kinda solution, but its not super sexy. https://github.com/slischka/forms-multiplier/commit/461ea71a9efb92bd64bda5d45b6e5268919b4c8d
I was thinking about to add some logic to addCreateButton
but its to complex. The result would be multiple calling getHttpData
etc. nad that would not be good.
from forms-multiplier.
Related Issues (20)
- Jak správně předat setDefaults z Action HOT 2
- Nested multiplier bugs HOT 2
- Phpstan
- Replace deprecated Latte\MacroTokens::fetchWords() calls HOT 2
- Fix links and bash syntax in readme
- Issue with the input type returned from multiplier since d51e6d4fb1d05fa01a6c2e1cb6d6f150c4e7e756 HOT 9
- Problém s přidáváním polí při AJAX redrawControl() HOT 1
- Přidat do dokumentace funkční a aktuální příklad použití s Naja
- Fix failing tests HOT 1
- Soft limits on number of copies HOT 3
- Support for Latte 3 HOT 1
- Multiplier does not apply form rules HOT 2
- Access to SubmitButtons HOT 2
- Using number of items in multiplier in validation HOT 2
- Current container instance index? HOT 1
- Kombinace s contributte/bootstrap-forms HOT 2
- PHP 8.3.3 HOT 6
- Component with name 'multiplier_creator' does not exist HOT 2
- How to use the multiplier for editing HOT 5
- Incompatibility with Nette Forms 3.2.3 HOT 3
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 forms-multiplier.