Jinntec / Fore

Fore - declarative user interfaces in plain HTML
MIT License
82 stars 11 forks source link

implement filter expressions on bind/@ref #125

Open JoernT opened 2 years ago

JoernT commented 2 years ago
<fx-bind ref="node[.=instance('another')/item]"

filters the 'node' by an item and should create a dependency in the graph. However the 'ref' expression is not analyzed yet to pick those up. This will need some testing and fixing

JoernT commented 2 years ago

This is just not yet implemented

JoernT commented 2 years ago

Here's a bug in DependencyNotifyingDOMFacade still not returning anything when fed with something like

complete example:

<fx-fore>
    <fx-model id="model1">
        <fx-instance>
            <data>
                <greeting>Hello World!</greeting>
                <b></b>
            </data>
        </fx-instance>
        <fx-bind ref="greeting[../b]"></fx-bind>
    </fx-model>
</fx-fore>

However it should return a ref for 'b'.

DrRataplan commented 2 years ago

Correct, it should have. Assuming the first part of the selector matches, the ref for b should also be there. I'll check this out and get back to you.

JoernT commented 1 year ago

related #164

JoernT commented 1 year ago

@DrRataplan if you got the time could you have a look? Like to fix that for 2.0.0