Is there a way to use custom content instead of button list in ionic.actionSheetController
? An example of this is in ionic.modalController
I can use a custom component
for the modal's content.
ionic.modalController example
import { ProductDetails } from "./../components";
...
return this.$ionic.modalController
.create({
component: ProductDetails,
componentProps: {
propsData: {
data: item,
}
}
})
.then(m => m.present());
ionic.actionSheetController attempt
import { ProductDetails } from "./../components";
...
return this.$ionic.actionSheetController
.create({
header: item.title,
subHeader: item.subTitle,
component: ProductDetails,
buttons: [
{
text: "Cancel",
icon: "close",
role: "cancel"
}
]
})
.then(a => a.present());
Below is an image of what I want to achieve