Kendo Mobile Action Sheet 按钮点击未注册,但硬按是

Posted

技术标签:

【中文标题】Kendo Mobile Action Sheet 按钮点击未注册,但硬按是【英文标题】:Kendo Mobile Action Sheet button tap not registering, but hard press is 【发布时间】:2021-01-02 11:40:45 【问题描述】:

我对剑道移动有点陌生。我正在使用 cordova 和 angularjs 以及 kendo UI 来构建移动 ios 应用程序。就像标题在操作表中所暗示的那样,当单击其中一个按钮时,只有在我用力按下时才会触发该按钮,当点击按钮时它只会关闭操作表。剑道是否有设置在其操作表中注册点击?

<ul kendo-mobile-action-sheet id="ActionSheet" k-popup='"direction": "left"'>
            <li></li>
            <li><a class="fa fa-camera" ng-click="GoTo('camera')" style="text-decoration: none; color: #000000;">&nbsp;Take Photo</a></li>
            <li><a class="fa fa-user" ng-click="GoTo('contactsedit')" style="text-decoration: none; color: #000000;" >&nbsp;Add Contacts</a></li>
            <li><a class="fa fa-comment" ng-click="GoTo('commentedit')" style="text-decoration: none; color: #000000;">&nbsp;Add Comment</a></li>
        </ul>

【问题讨论】:

【参考方案1】:

对于可能正在寻求类似帮助的其他人。 ng-click 在 ios 中的响应不是很灵敏。我将列表中的 ng-clicks 更改为 data-actions,一切正常。

   <ul kendo-mobile-action-sheet id="ActionSheet" k-popup='"direction": "left"'>
        <li></li>
        <li><a class="fa fa-camera" data-action="GoTo('camera')" style="text-decoration: none; color: #000000;">&nbsp;Take Photo</a></li>
        <li><a class="fa fa-user" data-action="GoTo('contactsedit')" style="text-decoration: none; color: #000000;" >&nbsp;Add Contacts</a></li>
        <li><a class="fa fa-comment" data-action="GoTo('commentedit')" style="text-decoration: none; color: #000000;">&nbsp;Add Comment</a></li>
    </ul>

【讨论】:

以上是关于Kendo Mobile Action Sheet 按钮点击未注册,但硬按是的主要内容,如果未能解决你的问题,请参考以下文章

html [mobile] [kendo]模板绑定样本

Angular Kendo mobile 中的模态视图

Kendo UI Mobile 如何禁用 touchmove 绑定

使用 Kendo UI Mobile 以编程方式触发点击事件

在 Kendo UI Mobile 的显示事件中更改标题?

Kendo UI Mobile列表视图的自定义过滤器?