Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to display textbox when tabout some input text field using oracle jet and knockout

3197902Apr 20 2016 — edited Apr 20 2016

I have a input textbox which I am creating through oracle jet.I have used knockout event binding like below

<div>

    <div data-bind="event: { mouseover: enableDetails, mouseout: disableDetails }">

        Mouse over me

    </div>

    <div data-bind="visible: detailsEnabled">

        Details

    </div>

</div>

<script type="text/javascript">

    var viewModel = {

        detailsEnabled: ko.observable(false),

        enableDetails: function() {

            this.detailsEnabled(true);

        },

        disableDetails: function() {

            this.detailsEnabled(false);

        }

    };

    ko.applyBindings(viewModel);

</script>

and in my second textbox I have binded my data-bind as visible:enableDetails but it is not displaying when I inputed in first text box.Is oracle jet doesn't accept event attributes in data bind.

Comments
Post Details
Added on Apr 20 2016
3 comments
945 views