mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-15 17:42:15 +08:00
docs(img): unencoded img tag in readme (#19172)
This commit is contained in:

committed by
Brandy Carney

parent
48a27636c7
commit
7f6664708c
4
core/src/components.d.ts
vendored
4
core/src/components.d.ts
vendored
@ -880,7 +880,7 @@ export namespace Components {
|
||||
*/
|
||||
'alt'?: string;
|
||||
/**
|
||||
* The image URL. This attribute is mandatory for the <img> element.
|
||||
* The image URL. This attribute is mandatory for the `<img>` element.
|
||||
*/
|
||||
'src'?: string;
|
||||
}
|
||||
@ -4373,7 +4373,7 @@ declare namespace LocalJSX {
|
||||
*/
|
||||
'onIonImgWillLoad'?: (event: CustomEvent<void>) => void;
|
||||
/**
|
||||
* The image URL. This attribute is mandatory for the <img> element.
|
||||
* The image URL. This attribute is mandatory for the `<img>` element.
|
||||
*/
|
||||
'src'?: string;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ export class Img implements ComponentInterface {
|
||||
@Prop() alt?: string;
|
||||
|
||||
/**
|
||||
* The image URL. This attribute is mandatory for the <img> element.
|
||||
* The image URL. This attribute is mandatory for the `<img>` element.
|
||||
*/
|
||||
@Prop() src?: string;
|
||||
@Watch('src')
|
||||
|
@ -73,7 +73,7 @@ export const ImgExample: React.FC = () => (
|
||||
| Property | Attribute | Description | Type | Default |
|
||||
| -------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------- | ----------- |
|
||||
| `alt` | `alt` | This attribute defines the alternative text describing the image. Users will see this text displayed if the image URL is wrong, the image is not in one of the supported formats, or if the image is not yet downloaded. | `string \| undefined` | `undefined` |
|
||||
| `src` | `src` | The image URL. This attribute is mandatory for the <img> element. | `string \| undefined` | `undefined` |
|
||||
| `src` | `src` | The image URL. This attribute is mandatory for the `<img>` element. | `string \| undefined` | `undefined` |
|
||||
|
||||
|
||||
## Events
|
||||
|
Reference in New Issue
Block a user