File tree Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ import {ARIAMixinStrict} from '../../internal/aria/aria.js';
14
14
import { requestUpdateOnAriaChange } from '../../internal/aria/delegate.js' ;
15
15
import {
16
16
FormSubmitter ,
17
- type FormSubmitterType ,
18
17
setupFormSubmitter ,
18
+ type FormSubmitterType ,
19
19
} from '../../internal/controller/form-submitter.js' ;
20
20
import {
21
21
dispatchActivationClick ,
@@ -78,9 +78,17 @@ export abstract class Button extends buttonBaseClass implements FormSubmitter {
78
78
@property ( { type : Boolean , attribute : 'has-icon' , reflect : true } ) hasIcon =
79
79
false ;
80
80
81
+ /**
82
+ * The default behavior of the button. May be "text", "reset", or "submit"
83
+ * (default).
84
+ */
81
85
@property ( ) type : FormSubmitterType = 'submit' ;
82
86
83
- @property ( ) value = '' ;
87
+ /**
88
+ * The value added to a form with the button's name when the button submits a
89
+ * form.
90
+ */
91
+ @property ( { reflect : true } ) value = '' ;
84
92
85
93
get name ( ) {
86
94
return this . getAttribute ( 'name' ) ?? '' ;
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ import {ARIAMixinStrict} from '../../internal/aria/aria.js';
16
16
import { requestUpdateOnAriaChange } from '../../internal/aria/delegate.js' ;
17
17
import {
18
18
FormSubmitter ,
19
- type FormSubmitterType ,
20
19
setupFormSubmitter ,
20
+ type FormSubmitterType ,
21
21
} from '../../internal/controller/form-submitter.js' ;
22
22
import { isRtl } from '../../internal/controller/is-rtl.js' ;
23
23
import {
@@ -91,9 +91,17 @@ export class IconButton extends iconButtonBaseClass implements FormSubmitter {
91
91
*/
92
92
@property ( { type : Boolean , reflect : true } ) selected = false ;
93
93
94
+ /**
95
+ * The default behavior of the button. May be "text", "reset", or "submit"
96
+ * (default).
97
+ */
94
98
@property ( ) type : FormSubmitterType = 'submit' ;
95
99
96
- @property ( ) value = '' ;
100
+ /**
101
+ * The value added to a form with the button's name when the button submits a
102
+ * form.
103
+ */
104
+ @property ( { reflect : true } ) value = '' ;
97
105
98
106
get name ( ) {
99
107
return this . getAttribute ( 'name' ) ?? '' ;
You can’t perform that action at this time.
0 commit comments