Skip to content

conditional popover #56

@mikehaas763

Description

@mikehaas763

Looking for opinions. Does it seem like giving the popover binding (or tooltip, etc) a conditional option is a bad idea? I'm thinking it probably is but want input from others.

Current way:

<!-- ko if: someCondition -->
<img data-bind="popover: {template: 'popoverTemplate', trigger: 'click'}" src="img.png">
<!-- /ko -->
<!-- ko ifnot: someCondition -->
<img src="img.png">
<!-- /ko -->

or if there was another option

<img data-bind="popover: {enabled: someCondition, template: 'popoverTemplate', trigger: 'click'}" src="img.png">

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions