Skip to content

Commit a9195e1

Browse files
authored
Use html markdown instead of php markdown for codes that will be placed in blade files (#35)
1 parent 62ad8cc commit a9195e1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ php artisan migrate
4545

4646
1. Add the export-button livewire component on your view file that uses dataTable class.
4747

48-
```php
48+
```html
4949
<livewire:export-button :table-id="$dataTable->getTableId()" />
5050
```
5151

@@ -76,7 +76,7 @@ $schedule->command('datatables:purge-export')->weekly();
7676

7777
You can set the export filename by setting the property.
7878

79-
```php
79+
```html
8080
<livewire:export-button :table-id="$dataTable->getTableId()" filename="my-table.xlsx" />
8181
<livewire:export-button :table-id="$dataTable->getTableId()" filename="my-table.csv" />
8282

@@ -87,7 +87,7 @@ You can set the export filename by setting the property.
8787

8888
You can set the export type by setting the property to `csv` or `xlsx`. Default value is `xlsx`.
8989

90-
```php
90+
```html
9191
<livewire:export-button :table-id="$dataTable->getTableId()" type="xlsx" />
9292
<livewire:export-button :table-id="$dataTable->getTableId()" type="csv" />
9393
```
@@ -96,7 +96,7 @@ You can set the export type by setting the property to `csv` or `xlsx`. Default
9696

9797
Option 1: You can set the Excel sheet name by setting the property.
9898

99-
```php
99+
```html
100100
<livewire:export-button :table-id="$dataTable->getTableId()" sheet-name="Monthly Report" />
101101
```
102102

@@ -184,7 +184,7 @@ Column::make('id')->exportFormat(NumberFormat::FORMAT_TEXT),
184184

185185
Option to automatically download the exported file.
186186

187-
```php
187+
```html
188188
<livewire:export-button :table-id="$dataTable->getTableId()" filename="my-table.xlsx" auto-download="true"/>
189189
```
190190

0 commit comments

Comments
 (0)