docs(item): update to include lines prop

This commit is contained in:
Brandy Carney
2018-08-09 18:02:54 -04:00
parent da6df2ad73
commit c287cb587e
3 changed files with 9 additions and 4 deletions

View File

@ -1084,7 +1084,7 @@ declare global {
*/
'href': string;
/**
* How the bottom border should be displayed on the item.
* How the bottom border should be displayed on the item. Available options: `"full"`, `"inset"`, `"none"`.
*/
'lines': 'full' | 'inset' | 'none';
/**
@ -2182,7 +2182,7 @@ declare global {
interface IonSkeletonText {
/**
* Width for the element to render at. Default is 100%
* The width of the element. Defaults to: `"100%"`.
*/
'width': string;
}
@ -4706,7 +4706,7 @@ declare global {
*/
'href'?: string;
/**
* How the bottom border should be displayed on the item.
* How the bottom border should be displayed on the item. Available options: `"full"`, `"inset"`, `"none"`.
*/
'lines'?: 'full' | 'inset' | 'none';
/**
@ -5802,7 +5802,7 @@ declare global {
export interface IonSkeletonTextAttributes extends HTMLAttributes {
/**
* Width for the element to render at. Default is 100%
* The width of the element. Defaults to: `"100%"`.
*/
'width'?: string;
}

View File

@ -60,6 +60,7 @@ export class Item {
/**
* How the bottom border should be displayed on the item.
* Available options: `"full"`, `"inset"`, `"none"`.
*/
@Prop() lines?: 'full' | 'inset' | 'none';
@ -145,6 +146,8 @@ export class Item {
const attrs = TagType === 'button' ? { type } : { href };
const showDetail = detail != null ? detail : mode === 'ios' && clickable;
console.log('item state', state);
return (
<TagType
{...attrs}

View File

@ -96,6 +96,7 @@ If this property is set, an anchor tag will be rendered.
string
How the bottom border should be displayed on the item.
Available options: `"full"`, `"inset"`, `"none"`.
#### mode
@ -181,6 +182,7 @@ If this property is set, an anchor tag will be rendered.
string
How the bottom border should be displayed on the item.
Available options: `"full"`, `"inset"`, `"none"`.
#### mode