Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Submit button
Message
From
29/03/2019 12:42:41
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
AngularJS
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01667712
Message ID:
01667717
Views:
27
>Hi everybody,
>
>I seems to be running into the following issue. I have a form with a directive which has the following code (for the directive):
>
>
><div class="pull-left generateLabelButton">
>                        <data-desc:type ng-if="crud.model.lbLayoutId===0"
>                                        value="@Labels.generateLabel"
>                                        keep-pristine="true"
>                                        on-after-selection="crud.layoutSelected(selectedValue)"
>                                        title="{{ '@string.Format(Labels.selectX, Labels.labelLayout)'}}"
>                                        param="layouts"
>                                        message="@string.Format(Labels.selectX, Labels.labelLayout)"
>                                        selected="crud.model.lbLayoutId"
>                                        descrip-value="descrip"
>                                        id="layoutPickerButton"
>                                        name="layoutPickerButton"
>                                        button-type="submit"
>                                        type="7"
>                                        filter-by="Label"
>                                        description="crud.model.lbLayout">
>                        </data-desc:type>
>                    </div>
>
>And in the directive's html I have
>
>
><div>
>        <input type="{{buttonType}}" 
>               value="{{value}}" 
>               ng-class="dynamicClass"
>               class="btn btn-primary description-button" ng-click="click()" />
>    
>        <i class="fas fa-lg fa-arrow-circle-right" aria-hidden="true"
>           ng-show="selected && selected!==0" title="{{openLayoutText}}"
>           ng-click="openLayout()"></i>    
>    
>        <i class="fas fa-lg fa-times-circle redText" aria-hidden="true"
>           style="margin-left: 10px; cursor: pointer;"
>           ng-show="selected && selected!==0"
>           title="@Labels.remove"
>           ng-click="removeLayout()"></i>    
></div>
>
>When I press the button I suppose to invoke the layout picker, etc. However, the form submit happens at that point which is wrong.
>
>I think I have an idea as how to at least avoid going into the code prematurely but is there a better solution?
>
>Thanks.

Maybe I am seeing wrong but it says "submit".
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform