jQWidgets Forums

jQuery UI Widgets Forums Angular ng-click not attached in jqxNotification

This topic contains 3 replies, has 2 voices, and was last updated by  Hristo 6 years, 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author

  • ashvani18
    Participant

    Hi Team,

    we are using Angular JS (Angular 1.6.9) with your library, we are building a list of notification and under the notification content,we have link where we want to attach the click event, we dont want to attach click event on notification itself, somehow click event is not being attached to link.

    This line <span><a ng-click="operation(data)" href="javascript:void(0);">{{data.opName}}</a></span> is not working

    <div ng-repeat="data in datalist" >
    	<jqx-notification   jqx-create="data.settingsObj"
    					  jqx-settings="data.settingsObj"
    					  jqx-on-close="dismissHandler($event)">
    		<div class='row' style='overflow:hidden !important; padding:0px !important;'>
    			<div class='col-xs-12'>
    				<span>{{data.text}}</span>
    				<span><a ng-click="operation(data)" href="javascript:void(0);">{{data.opName}}</a></span>
    			</div>
    		</div>
    	</jqx-notification>
    </div>

    Hristo
    Participant

    Hello ashvani18,

    Could you clarify what you want to achieve?
    Because the implementation that you use you expect to be saved after the jqxNotification is created.
    All its content is restructured.

    I would like to suggest you use its events – click.
    The jqxNotification has open and close event which could be useful, too.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com


    ashvani18
    Participant

    Hi Hristo,

    We don’t want click on whole Notification itself rather we want a click event on particular anchor tag of notification content, there could be more than one anchor tag in notification content and we want different operation to perform on different click.

    Thanks,
    Ashvani


    Hristo
    Participant

    Hello ashvani18,

    Unfortunately, this is not available in the jqxNotification.
    As an alternative I would like to suggest you try to add classes or ids for the internal items and bind to click event on them.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.