Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F7104474
README.md
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
733 B
Referenced Files
None
Subscribers
None
README.md
View Options
#
responsive
-
image
component
Komponent
zwracający
gotowy
,
responsywny
znacznik
img
w
zależności
od
podanych
wymagań
(
razem
z
pocięciem
obrazu
ź
ródłowego
).
###
Przykład
użycia
```
javascript
responsive_image
({
image_path
,
resolutions
,
quality
,
sizes_attr
,
alt
});
```
###
Argumenty
-
**
image_path
:**
string
,
ś
cieżka
do
obrazu
,
dla
którego
chcemy
wygenerować
znacznik
,
-
**
out_path
**
string
,
miejsce
w
którym
mają
zostać
zapisane
wyrenderowane
pliki
,
-
**
resolutions
:**
tablica
np
.
[
200
,
300
]
-
rozmiary
dla
których
obraz
ma
być
pocięty
,
-
**
quality
:**
number
,
jakość
obrazu
w
przedziale
od
0
-
100
,
-
**
sizes_attr
:**
string
,
atrybut
sizes
znacznika
,
-
**
alt_tag
:**
string
,
tag
alt
znacznika
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 3, 03:05 (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
794417
Default Alt Text
README.md (733 B)
Attached To
Mode
rSEALPAGE Sealpage
Attached
Detach File
Event Timeline
Log In to Comment